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.
npx agentmods add skills/adit-jain-srm/skill-forge/arch-from-codenpx skills add Adit-Jain-srm/skill-forge --skill arch-from-codegit clone --depth 1 https://github.com/Adit-Jain-srm/skill-forgeWrote 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.
[](https://agentmods.dev/skills/adit-jain-srm/skill-forge/arch-from-code)<a href="https://agentmods.dev/skills/adit-jain-srm/skill-forge/arch-from-code"><img src="https://agentmods.dev/badge/skills/adit-jain-srm/skill-forge/arch-from-code.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00078 | $0.01629 |
| Opus 5 | $0.00039 | $0.00814 |
| Sonnet 5 | $0.00016 | $0.00326 |
| Haiku 4.5 | $0.00008 | $0.00163 |
Grade A, and why
arch-from-code 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 3d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 229 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Architecture from Code
Overview
Read the actual codebase. Generate accurate architecture diagrams. No guessing, no outdated docs — diagrams that reflect what the code ACTUALLY does right now.
When to Use
- "Document this project's architecture"
- "Show me the dependency graph"
- "Generate a C4 diagram of this system"
- "What services talk to each other?"
- "Map out the data flow"
- Onboarding onto an unfamiliar codebase
- Architecture review before major refactoring
- Generating ADRs (Architecture Decision Records)
Quick Start
# Step 1: Identify the codebase structure
find . -name "*.ts" -o -name "*.py" -o -name "*.go" | head -50
# Or: list top-level directories
ls -la src/ app/ lib/ services/ packages/
# Step 2: Run this skill's analysis process (below)
# Step 3: Output Mermaid diagram
Process
Step 1: Discover Project Shape
# Package manager = tech stack signal
ls package.json pyproject.toml go.mod Cargo.toml pom.xml *.csproj 2>/dev/null
# Entry points
ls src/index.* src/main.* app/main.* cmd/main.* 2>/dev/null
# Service boundaries (microservices)
ls -d services/* apps/* packages/* 2>/dev/null
# Configuration reveals integrations
cat .env.example docker-compose.yml 2>/dev/null | grep -i "host\|url\|port\|database\|redis\|queue"
Step 2: Trace Dependencies
For TypeScript/JavaScript:
# External dependencies = integration points
cat package.json | jq '.dependencies'
# Internal imports = module relationships
grep -r "from ['\"]\.\./" src/ --include="*.ts" | sed 's/.*from ['\''\"]\(.*\)['\''\"]/\1/' | sort | uniq -c | sort -rn
For Python:
cat requirements.txt pyproject.toml | grep -v "^#"
grep -r "^from\|^import" src/ --include="*.py" | grep -v __pycache__ | sort | uniq -c | sort -rn
For Go:
cat go.mod | grep -v "^//"
grep -r "import" . --include="*.go" | grep -v vendor | sort | uniq -c | sort -rn
Step 3: Identify Layers & Boundaries
Read top-level directories and classify:
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.
- 3d ago First seen · 229 lines · 78 tokens per session scan A 63ea9d58ce78
arch-from-code is a skill published in the GitHub repository Adit-Jain-srm/skill-forge (2 stars, last pushed 2mo ago), licensed MIT. It adds 78 tokens to every session and 1,629 once invoked, about $0.0004 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.
Other skills, from other repositories
user-research-cookiy
End-to-end user research assistant — qualitative and quantitative. Use this skill whenever the user mentions user research, user interviews, discussion guides, interview guides, research plans, qualitative research, quantitative research, user surveys, survey design, usability studies, participant recruitment…
crossframe-essay
CrossFrame Essay explicit-only Chinese critical insight writing skill. Use only when the user explicitly names crossframe-essay, $crossframe-essay, /crossframe-essay, or asks to use CrossFrame Essay; do not trigger implicitly for ordinary writing, commentary, article, editing, or long-answer tasks. Suite-directed use…
crossframe-promax
Use when the user explicitly names crossframe-promax, CrossFrame ProMax, $crossframe-promax, or /crossframe-promax; never infer activation from generic requests for depth, completeness, maximum effort, or long output.
crossframe-suite
CrossFrame Suite explicit-only router. Use only when the user explicitly names crossframe-suite, $crossframe-suite, /crossframe-suite, or asks to use the CrossFrame suite; do not trigger implicitly for ordinary analysis, writing, public, organization, debate, teaching, reading, or review tasks. After explicit…
crossframe-inquiry
经由 crossframe-suite 完成态接管或用户显式命令使用,不隐式响应。把 CrossFrame 诊断、文章、review、claim ledger 和机制候选转化为结构追问,帮助用户继续深思、反证、补证、迁移应用或收束。.
crossframe-max
Use when the user explicitly invokes crossframe-max, /crossframe-max, $crossframe-max, maximum CrossFrame mode, exhaustive structural projection, full-scale world-model interpretation, no word-limit complete explanation, or v6 meta-runtime design review for skills, prompts, agents, tools, templates, scripts, and…