archi-code-survey

archi-code-survey is a skill for Claude Code from JiuNian3219/architext. It costs 41 tokens per session (755 once invoked), scanned A, original, MIT.

A codebase-survey procedure for documenting an existing project before inheriting it. It records important modules, flows, public functions, and dependencies while excluding generated or third-party code.

In plain words
What is it for?
Use it to inspect project configuration and business code, trace important flows, and create the structured findings required by the archi.init process.
Why use it?
It reduces the risk of missing how the project works when starting maintenance or a larger architecture review.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Use it to inspect project configuration and business code, trace important flows, and create the structured findings required by the archi.init process.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jiunian3219/architext/archi-code-survey
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.

Any agent
npx skills add JiuNian3219/architext --skill archi-code-survey
Clone the repo
git clone --depth 1 https://github.com/JiuNian3219/architext

Made for: Claude Code.

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 archi-code-survey

README.md
[![agentmods](https://agentmods.dev/badge/skills/jiunian3219/architext/archi-code-survey.svg)](https://agentmods.dev/skills/jiunian3219/architext/archi-code-survey)
Your own site
<a href="https://agentmods.dev/skills/jiunian3219/architext/archi-code-survey"><img src="https://agentmods.dev/badge/skills/jiunian3219/architext/archi-code-survey.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00041 $0.00755
Opus 5 $0.00020 $0.00378
Sonnet 5 $0.00008 $0.00151
Haiku 4.5 $0.00004 $0.00076

Measured 8d ago against content hash 331f25bb99cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

archi-code-survey 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 8d 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.

templates/en/skills/archi-code-survey/SKILL.md · 66 lines

How it starts

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

Invocation

  • Auto-invoke: No, not triggered by model based on description.
  • Trigger location: Only explicitly called via [[SUBAGENT]] / [[NO-SUBAGENT]] in /archi.* protocols.
  • Execution context: When subagent supported must execute in independent subagent/independent context; only downgrade to inline Skill when no subagent.
  • Boundary: Only return protocol-required structured artifacts, subsequent write, confirm and signoff handled by calling protocol.

Design Principles

  1. Thorough Discovery: Full read of all non-third-party business code (exclude node_modules/vendor/dist etc generated artifacts)
  2. Layered Recording: Core modules record flows in detail; shared logic record signatures and dependencies; pure utilities record signatures and purposes
  3. Large Module Throttling: When single module > 20 files, sort by import count for detailed read of top 10, rest only record export signatures
  4. Evidence-Based: Any conclusion must be based on code facts, do not fabricate without evidence

Execution Phases

1a Coarse Read

  1. Read project root config files (auto-detect type):
    • Node.js: package.json, tsconfig.json
    • Rust: Cargo.toml
    • Go: go.mod
    • Python: pyproject.toml, requirements.txt
    • Java: pom.xml, build.gradle
    • Other: Use root directory config files as reference
  2. Read README.md (if exists)
  3. Scan directory structure (complete depth)
  4. Infer project feature tags (ui / data / cli / lib / api)
  5. Identify entry files and core modules; build module dependency sketch following entry file's import chain

1b Fine Read

  1. For each feature module:
    • Start from entry file, read layer by layer following import/call chain, cover main business logic
    • Extract main flows (user operation → system processing → result)
    • Record associated file paths and importedBy reverse relationships
    • Large modules (> 20 files): Sort by importedBy count for detailed read of top 10, rest only record export signatures
  2. For shared/infrastructure code (utils, middleware, config) full read, record by tier:
    • Medium tier (auth/validation/error-handling/permission): Responsibility + export function signatures + who depends on it
    • Simple tier (format/slugify/logger/helpers): Function name + parameter signature + one-sentence purpose
    • Both write to publicAPI field

Read the full file on GitHub · 66 lines

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. 8d ago First seen · 66 lines · 41 tokens per session scan A 331f25bb99cd

Subscribe to this mod's changes

archi-code-survey is a skill published in the GitHub repository JiuNian3219/architext (14 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 755 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

ppt-orchestrator

A dispatcher for creating presentations, slide decks, long images, and weekly reports. It chooses a visual style and output format, then sends the work to a more specialised add-on.

huangrichao2020/pretty-skills · 160 tokens

zhongguose-html-skill

An HTML-only presentation system using traditional Chinese colours and Chinese-style visual design. It helps organise source material into a report structure and produces a self-contained HTML file with its assets.

huangrichao2020/pretty-skills · 232 tokens

教程类H5-小红书小工具

A method for building offline, single-page course experiences for Xiaohongshu’s Mini Tools, which are interactive pages published inside the platform. It combines written lessons, generated illustrations, and JavaScript page switching in a constrained container.

huangrichao2020/pretty-skills · 110 tokens

dashiai-ppt

A presentation-making add-on that creates an HTML slide deck from preset visual page designs. The result can open offline in a browser and can be exported as a PowerPoint or PDF file.

huangrichao2020/pretty-skills · 62 tokens

wechat-delivery

A workflow for preparing WeChat Official Account articles, images, covers, and publishing files in Chinese. WeChat Official Accounts are channels used by organizations to publish articles to followers.

huangrichao2020/pretty-skills · 129 tokens

ai-image-to-pptx

A workflow that creates a set of related images with AI and places them into a real PowerPoint file. The resulting .pptx file can be opened and edited in PowerPoint, Keynote, or WPS.

huangrichao2020/pretty-skills · 93 tokens