ai-inventory
Generate and analyze AI Bill of Materials (AIBOM) for Python projects using AI/ML components. Identifies AI models, datasets, tools, and frameworks for security and compliance tracking. Use this skill when: - User asks to scan for AI components - User wants to know what AI models a project uses - User mentions "AI BOM", "AI inventory", or "ML security" - User is working with Python AI/ML projects (PyTorch, TensorFlow, HuggingFace) - User needs AI component compliance documentation
What this skill does
# AI Component Inventory Generate and analyze AI Bill of Materials (AIBOM) for Python projects to track AI models, datasets, and ML frameworks for security, compliance, and governance. **Core Principle**: Know what AI components are in your software. **Note**: This is an experimental feature. Currently supports Python projects only. --- ## Quick Start ``` # Step 1: Generate AIBOM for the project mcp_snyk_snyk_aibom(path="/absolute/path/to/project") # Step 2: (Optional) Save AIBOM to file for documentation mcp_snyk_snyk_aibom( path="/absolute/path/to/project", json_file_output="/absolute/path/to/output/aibom.json" ) # Step 3: Verify the returned JSON contains component entries before proceeding # Step 4: Summarize findings and flag license/risk issues ``` --- ## Prerequisites - Python project with `requirements.txt`, `setup.py`, or `pyproject.toml` - Internet connection (required for analysis) - Snyk experimental features enabled --- ## Phase 1: Project Validation **Goal**: Ensure the project is suitable for AI BOM generation. ### Step 1.1: Verify Python Project Check for Python project indicators: `requirements.txt`, `setup.py`, `pyproject.toml`, `Pipfile`, or `.py` files. > **Error — Not a Python Project**: If no Python indicators are found, stop and report: > - Verify path contains Python files > - Check for `requirements.txt` or `pyproject.toml` > - This feature only supports Python projects ### Step 1.2: Check for AI/ML Indicators Scan dependency files for known AI/ML packages — common examples include `torch`, `tensorflow`, `keras`, `transformers`, `datasets`, `scikit-learn`, `jax`, `openai`, `langchain`, `mlflow`, and `wandb`. This list is illustrative; use judgment for other AI/ML packages encountered. ### Step 1.3: Report if Not Applicable If no AI components detected: ``` ## AI Inventory Result **Project**: /path/to/project **Status**: No AI components detected This project does not appear to use AI/ML frameworks. AI BOM generation is not applicable. ``` --- ## Phase 2: Generate AIBOM **Goal**: Create comprehensive AI Bill of Materials. ### Step 2.1: Run AIBOM Generation Invoke the `mcp_snyk_snyk_aibom` tool with the absolute path to the Python project: ``` mcp_snyk_snyk_aibom(path="/absolute/path/to/project") ``` > **Error — Network Error**: If the tool cannot connect, report: > - Check internet connection and firewall (HTTPS must be allowed) > - Retry after a few minutes > **Error — Experimental Feature Not Enabled**: If access is denied, report: > - Contact Snyk support for experimental access > - Check organization settings and verify CLI version supports AIBOM ### Step 2.2: Validate AIBOM Output Before proceeding, verify the returned JSON is valid and contains at least one component entry. If the response is empty or malformed, report the error and do not continue to Phase 3. ### Step 2.3: Save Output (Optional) To persist the AIBOM as a file for documentation or downstream tooling: ``` mcp_snyk_snyk_aibom( path="/absolute/path/to/project", json_file_output="/absolute/path/to/output/aibom.json" ) ``` --- ## Phase 3: Analyze Components **Goal**: Understand and categorize AI components from the validated AIBOM output. ### Step 3.1: Component Categories AIBOM identifies five component types: **Models**, **Datasets**, **Frameworks**, **Tools**, and **Services**. ### Step 3.2: Generate Summary Report Present findings using the structure below, populated with actual scan results: ``` ## AI Component Inventory **Project**: <project name> **Scan Date**: <date> **Format**: CycloneDX v1.6 ### Component Summary | Category | Count | |-----------|-------| | AI Models | N | | Datasets | N | | Frameworks| N | | Tools | N | | **Total** | N | ### AI Models Detected | Model | Source | License | Risk | |-------|--------|---------|------| | <from scan results> | ... | ... | ... | ### Datasets Referenced | Dataset | Source | License | PII Risk | |---------|--------|---------|----------| | <from scan results> | ... | ... | ... | ### Frameworks & Tools | Component | Version | License | |-----------|---------|---------| | <from scan results> | ... | ... | ``` --- ## Phase 4: Risk Assessment **Goal**: Identify potential risks in AI components. ### Step 4.1: License Compliance Flag components by risk level: **Low** (MIT, Apache), **Medium** (proprietary APIs — review terms of service), **High** (unknown/unclear licenses or research-only terms that may prohibit commercial use). ### Step 4.2: Data Privacy Concerns Flag datasets or models where data provenance or PII handling is unclear. Recommend: documenting data sources, reviewing PII handling procedures, and verifying data retention policies. ### Step 4.3: Model Security Assess model-specific risks: prompt injection (LLM-based models — mitigate with input validation), model extraction (custom/fine-tuned models — apply access controls), adversarial inputs (vision models — input validation), and bias/fairness (consider bias testing). --- ## Phase 5: Documentation **Goal**: Create compliance-ready documentation. ### Step 5.1: Generate Compliance Report ``` ## AI Compliance Report **Project**: <project name> **Generated**: <date> **Standard**: EU AI Act / Internal Governance ### AI System Classification - **Risk Level**: [High/Limited/Minimal] - **Category**: [Classification based on use case] ### Component Inventory [Summary from Phase 3] ### License Compliance - All components licensed: Yes/No - Commercial use permitted: Yes/No - Attribution required: [list components] ### Data Governance - Data sources documented: Yes/No - PII handling reviewed: Yes/No - Consent verified: Yes/No ### Model Governance - Model cards available: Yes/No - Bias testing completed: Yes/No - Performance benchmarks: Yes/No ### Approval Status - [ ] Technical review - [ ] Legal review - [ ] Ethics review - [ ] Deployment approved ``` --- ## Use Cases - **Pre-Deployment Audit**: Generate AIBOM → review licenses → check data/PII handling → document for audit trail - **Regulatory Compliance (EU AI Act)**: Generate AIBOM → classify AI system risk level → document capabilities/limitations → create compliance checklist - **Third-Party AI Review**: Generate AIBOM → analyze licenses → assess data handling → document risks and mitigations --- ## Constraints 1. **Python only**: Currently only supports Python projects 2. **Experimental**: Feature may change or have limitations 3. **Network required**: Needs internet for analysis 4. **CycloneDX output**: Generates CycloneDX v1.6 format only 5. **Point-in-time**: Reflects current state — regenerate on updates
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.