/cc-arsenal:inject-docsfrom cc-arsenal
Injects compressed Next.js or FastAPI best-practices docs into CLAUDE.md/AGENTS.md so AI agents get passive framework knowledge. Auto-detects framework and version, then runs the appropriate codemod or template.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Inject compressed framework-specific best practices and documentation into the current project's CLAUDE.md or AGENTS.md file. This gives AI coding agents passive access to framework knowledge without requiring tool calls or skills.
| Framework | Detection Method | Documentation Source |
|---|---|---|
| Next.js | next in package.json | Vercel's agents-md codemod (version-aware) |
| FastAPI | fastapi in requirements.txt/pyproject.toml | zhanymkanov/fastapi-best-practices |
CRITICAL:
Before running anything, auto-detect the framework and verify prerequisites:
Detect the framework:
package.json with next dependency → Next.js projectpyproject.toml with fastapi dependency → FastAPI projectrequirements.txt containing fastapi → FastAPI projectDetect framework version (if applicable):
package.jsonpyproject.toml or requirements.txtDetect target file:
CLAUDE.md exists in the project root - use CLAUDE.mdAGENTS.md exists - use AGENTS.mdCLAUDE.md (Claude Code's native format)Execute the Vercel codemod with the --output flag, in the project root. Requires Node.js (npx ships with it; install via fnm install --lts or brew install node):
npx @next/codemod@canary agents-md --output <TARGET_FILE>
Where <TARGET_FILE> is the file detected in Phase 0 (e.g., CLAUDE.md or AGENTS.md).
What this does:
.next-docs/ and adds it to .gitignore--output)Important:
Requires uv (curl -LsSf https://astral.sh/uv/install.sh | sh or brew install uv). Run the bundled injection script using this skill's own absolute directory path, not $(dirname "$0"). That trick resolves against the shell's path when run through the Bash tool, not this SKILL.md's location, so it silently points at the wrong (or a nonexistent) script. Use the directory this SKILL.md was loaded from instead:
uv run <absolute-path-to-this-skill-dir>/scripts/inject_fastapi_docs.py
The script:
CLAUDE.md or AGENTS.md exists and targets the right fileSee references/fastapi-best-practices.md for the exact content injected.
After Phase 1 completes:
## FastAPI Best Practices section)Summarize for the user:
> inject Next.js docs
Detected Next.js 15.2.3 in package.json
Found existing CLAUDE.md - will inject documentation there
Running: npx @next/codemod@canary agents-md --output CLAUDE.md
Updated CLAUDE.md (2.1 KB -> 10.3 KB)
Added .next-docs to .gitignore
Review the changes and commit when ready:
git add CLAUDE.md .gitignore && git commit -m "docs: add Next.js agents-md framework reference"
> inject FastAPI best practices
Detected FastAPI 0.115.0 in pyproject.toml
No CLAUDE.md or AGENTS.md found - creating CLAUDE.md
Ran scripts/inject_fastapi_docs.py
Created CLAUDE.md (0 B -> 6.8 KB) with "FastAPI Best Practices" section
Review the changes and commit when ready:
git add CLAUDE.md && git commit -m "docs: add FastAPI best-practices reference"
> inject docs for this Django app
Checked package.json, pyproject.toml, requirements.txt - no `next` or
`fastapi` dependency found.
Could not detect a supported framework (Next.js or FastAPI). This skill
only injects docs for those two. No files were changed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal