inject-docs

inject-docs is a skill for Claude Code from mgiovani/cc-arsenal. It costs 143 tokens per session (1,678 once invoked), scanned A, original, MIT.

A documentation tool that adds framework-specific guidance to CLAUDE.md or AGENTS.md, files that coding agents read for project instructions. It currently covers Next.js, a React web framework, and FastAPI, a Python web framework.

In plain words
What is it for?
Use it to detect whether a project uses Next.js or FastAPI and add matching best practices to the agent’s instruction file.
Why use it?
It gives the agent relevant framework knowledge in the project instructions, reducing the need for repeated documentation lookups.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool; positional $N argument.

Part of the cc-arsenal plugin — 53 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/mgiovani/cc-arsenal/inject-docs
Any agent
npx skills add mgiovani/cc-arsenal --skill inject-docs
Clone the repo
git clone --depth 1 https://github.com/mgiovani/cc-arsenal

Made for: Claude Code.

Or install cc-arsenal, the plugin that ships this one along with the rest of its 53 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for inject-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/inject-docs.svg)](https://agentmods.dev/skills/mgiovani/cc-arsenal/inject-docs)
Your own site
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/inject-docs"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/inject-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,678 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00143 $0.01678
Opus 5 $0.00072 $0.00839
Sonnet 5 $0.00029 $0.00336
Haiku 4.5 $0.00014 $0.00168

Measured 6d ago against content hash c905d245b27d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

inject-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/inject_fastapi_docs.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/inject-docs/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Framework Documentation Injector

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.

Supported Frameworks

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

Anti-Hallucination Guidelines

CRITICAL:

  1. Auto-detect the framework before running anything - check project files to identify the framework
  2. Do NOT assume tools are available - verify Node.js/Python tooling exists based on framework
  3. Do NOT claim success until verifying the target file exists and contains actual content
  4. Read actual output - report what the commands say, not what is expected

Implementation Workflow

Phase 0: Framework Detection & Validation (REQUIRED)

Before running anything, auto-detect the framework and verify prerequisites:

  1. Detect the framework:

    • Check for package.json with next dependency → Next.js project
    • Check for pyproject.toml with fastapi dependency → FastAPI project
    • Check for requirements.txt containing fastapi → FastAPI project
    • If multiple frameworks detected, prioritize based on arguments or ask user
    • If no framework detected, STOP and inform the user: "Could not detect a supported framework (Next.js or FastAPI)."
  2. Detect framework version (if applicable):

    • For Next.js: extract version from package.json
    • For FastAPI: extract version from pyproject.toml or requirements.txt
    • Report the detected version to the user
  3. Detect target file:

    • Check if CLAUDE.md exists in the project root - use CLAUDE.md
    • Else check if AGENTS.md exists - use AGENTS.md
    • If neither exists, default to CLAUDE.md (Claude Code's native format)
    • Inform the user which file will be updated

Read the full file on GitHub · 161 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 161 lines · 143 tokens per session scan A c905d245b27d

Subscribe to this mod's changes

inject-docs is a skill published in the GitHub repository mgiovani/cc-arsenal (7 stars, last pushed 6d ago), licensed MIT. It adds 143 tokens to every session and 1,678 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ops-demo

CocoOps demo mode activator — populates .cocoplus/ops/demo/ with realistic mock data and sets cocoplus.toml [demo] enabled = true. Invoked via $ops demo.

Snowflake-Labs/cocoplus · 46 tokens

acl-rule-analysis

Vendor-agnostic ACL and firewall rule analysis with shadowed rule detection, overly permissive rule identification, unused rule discovery, redundant rule flagging, and rule ordering optimization. Covers ACLs (Cisco/JunOS/EOS) and firewall policies (PAN-OS/FortiGate/CheckPoint).

LeoYeAI/openclaw-master-skills · 64 tokens

agent-teams-simplify-and-harden

Implementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then audit agents to find complexity, security gaps, and spec deviations, then loops until code compiles cleanly, all tests pass, and auditors find zero issues or…

LeoYeAI/openclaw-master-skills · 115 tokens

agent-team-orchestration

Orchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4)…

LeoYeAI/openclaw-master-skills · 102 tokens

agent-bom-enforce

Enforce security policies on MCP tool calls and block dangerous operations at runtime. Use when: "block risky calls", "apply policy", "proxy", "runtime protection", "policy enforcement", "intercept MCP calls".

LeoYeAI/openclaw-master-skills · 50 tokens

diary

Show CocoDiary operator-facing work journal status.

Snowflake-Labs/cocoplus · 12 tokens