code2wiki
AI Agent Skill โ Auto-generate business context layer (BCL) for large backend codebases. Supports Java, Python, Go, Kotlin, TypeScript.
Install / Use
npx skills add woaillr-crypto/code2wikiInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of code2wiki
code2wiki scores 80/100 on our quality scale, 765th of 966 AI & Machine Learning skills we index.
Its SKILL.md is 14 KB long, well organised into 42 sections with 9 code examples: a thorough specification that gives an agent plenty to work with.
It has 8 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 6 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-19 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 78/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit โ read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk โ read a skill before letting an agent act on it.
code2wiki compared with similar skills
All 4 of these similar skills score higher than code2wiki; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| code2wiki (this skill)by woaillr-crypto | 80 | 8 | 6mo ago | SKILL.md |
| claude-memby thedotmack | 100 | 113.5k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 109.2k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 90.9k | 10d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.9k | today | CLAUDE.md |
Frequently asked questions
- How do I install code2wiki?
- Run
npx skills add woaillr-crypto/code2wiki. The install tabs above show the steps for each supported agent. - Which AI agents does code2wiki work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is code2wiki safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 78/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is code2wiki still maintained?
- The repository was last updated about 6 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubcode2wiki = code documentation + business wiki + LLM context layer โ one skill to understand any backend codebase.
The Problem
You have a 200K-line Java/Go/Python backend. A new developer joins โ they spend 2โ4 weeks reading code before making meaningful contributions. You ask an LLM to implement a feature โ it hallucinates because it has no business context. You try to document โ the wiki gets outdated within a month.
code2wiki solves this by automatically generating a Business Context Layer (BCL) โ a living, structured knowledge base that maps business domains, workflows, concepts, risk points, and cross-cutting concerns directly from source code.
Effectiveness
| Metric | Without code2wiki | With code2wiki | Improvement | | --- | --- | --- | --- | | New developer onboarding | 2โ4 weeks to productive | 2โ3 days to productive | ~80% faster | | LLM feature development context | Read entire codebase (hallucination-prone) | Focused BCL docs (~50 files) | ~95% context reduction | | Business domain documentation | Manual, 40โ80 hours per project | Scanner: 3 min + AI enrichment: 2โ4 hours | ~90% time saved | | API reverse-lookup accuracy | Requires source code reading | โฅ 67% accuracy from docs alone | Instant navigability | | Documentation freshness | Outdated within weeks | Incremental protection + re-scan | Always current |
Benchmarked on real-world projects: 150K-line Java/Spring monolith (38 domains, 420+ APIs) and 80K-line Go microservice cluster.
Installation
code2wiki is an AI Agent Skill compatible with QoderWork, Claude Code, Cursor, Cline, Codex, and other AI coding agents.
# Install via skills CLI (recommended)
npx skills add woaillr-crypto/code2wiki
# Or install to a specific agent
npx skills add woaillr-crypto/code2wiki -a claude-code
npx skills add woaillr-crypto/code2wiki -a cursor
# Or install globally
npx skills add woaillr-crypto/code2wiki -g
After installation, simply tell your AI agent:
"Use code2wiki to analyze this project and generate a business context layer."
The agent will automatically invoke the skill, run the scanner, and begin AI enrichment.
Manual Installation
git clone https://github.com/woaillr-crypto/code2wiki.git
# Copy the SKILL.md and scripts/ to your agent's skills directory
How It Works
code2wiki operates in two phases โ Scanner (automated) + AI Enrichment (agent-driven):
Phase 1: Scanner (3 min for 200K lines) Phase 2: AI Enrichment (agent-driven)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Source Code โ โ Skeleton Index โ
โ (Java/Kotlin/Python/Go/TS) โโโโโ scan โโโโบโ (file paths, classes, methods, โ
โ โ โ call chains, git signals) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโ
โ
AI reads 5-10
core files/domain
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Business Context Layer (BCL) โ
โ โข Domain workflows (arrow diagrams)โ
โ โข Business concepts & state flows โ
โ โข Risk points (txn/concurrency) โ
โ โข Integration maps (upstream/down) โ
โ โข Business rules extraction โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
What Makes It Different
| Approach | Output | Business Value | | --- | --- | --- | | Code search (grep/IDE) | Raw matches | Zero โ still requires human interpretation | | AST-based doc generators (JavaDoc, Sphinx) | API signatures | Low โ no business semantics | | AI "explain this code" | Per-file summaries | Medium โ no cross-domain understanding | | code2wiki | Domain-organized BCL with workflows, risks, integrations | High โ LLM can reason about business impact |
Supported Stacks
| Language | Frameworks & Detection | | --- | --- | | Java | Spring Boot, MyBatis, Dubbo, Feign, RocketMQ, XxlJob, Kafka | | Kotlin | Spring Boot, Ktor (routing DSL), Exposed, Coroutines | | Python | Django (CBV+FBV), FastAPI, Flask, SQLAlchemy, Celery, APScheduler | | Go | Gin, Echo, gRPC, GORM, sqlc, robfig/cron, NATS | | TypeScript/JS | NestJS, Express, TypeORM, Prisma, BullMQ, node-cron |
Auto-detection works via build manifests (pom.xml, go.mod, pyproject.toml, package.json, etc.) โ no configuration needed. Mixed-language monorepos are scanned in parallel with intelligent cross-cutting merge.
Output Structure
business-context-layer/
โโโ 00_project_overview.md # Tech stack, scale metrics, domain candidates
โโโ 01_business_domains/
โ โโโ <domain>/
โ โโโ skill.md # L1 entry: business summary + rules + risks
โ โโโ workflows.md # Business flow diagrams (arrow notation)
โ โโโ concepts.md # Core concepts + state transition diagrams
โ โโโ call_chains.md # Entry โ orchestration โ external calls
โ โโโ api_map.md / db_map.md # API & database schema mapping
โ โโโ integration_map.md # Upstream/downstream system interactions
โ โโโ risk_points.md # Transaction/concurrency/cache/idempotency
โโโ 02_cross_cutting/ # MQ, scheduling, caching, auth, RPC, observability
โโโ 03_development_playbooks/ # Step-by-step guides for common changes
โโโ 04_glossary/ # Business terms โ code entry points
โโโ 05_indexes/ # API index, call graph, git activity heatmap
โโโ 06_auxiliary_knowledge/ # Supplementary context
Layered Context Model (L0โL1โL2โSource)
BCL is designed for progressive loading โ LLMs load only what they need:
| Layer | Content | Answers |
| --- | --- | --- |
| L0 | Project overview + glossary + indexes | "What does this system do? What domains exist?" |
| L1 | Domain skill.md (โค60 lines each) | "What does this domain do? Key rules? Risks?" |
| L2 | Workflows, concepts, integrations, risks | "How does the flow work? Who are upstream/downstream?" |
| Source | Actual source files pointed to by L2 | Precise implementation details |
Standard development path: L0 โ locate domain โ L1 โ relevant L2 โ drill into Source.
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ scripts/analyze_project.py (CLI โ 89 lines) โ
โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ code2wiki/cli.py (Orchestrator) โ
โ 1. Auto-detect languages โ
โ 2. Run each language plugin in parallel โ
โ 3. Merge cross-cutting contributions โ
โ 4. Emit unified output โ
โโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโผโโโโโโโโโโโโโโ
โผ โผ โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ plugins/ โ โ core/ โ โ cross_cuttingโ
โ language_*.pyโ โ io, domain, โ โ Registry โ
โ (5 langs) โโโ git, writers,โ โ (merge logic)โ
โ โ โ models, etc. โ โ โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
CLI Reference
# Basic (auto-detect language)
python3 scripts/analyze_project.py /path/to/project --output ./output
# Specify language: java | python | go | kotlin | typescript
python3 scripts/analyze_project.py /path/to/project --language go
# More candidate domains (default 30, large projects use 40-60)
python3 scripts/analyze_project.py /path/to/project --top-domains 40
# Disable domain merging (debug misclassification)
python3 scripts/analyze_project.py /path/to/project --no-merge
# Force overwrite AI-enriched files (use with caution)
python3 scripts/analyze_project.py /path/to/project --force
# Skip git analysis (CI / shallow clone)
python3 scripts/analyze_project.py /path/to/project --no-git
# Run only one plugin in a monorepo
python3 scripts/analyze_project.py /path/to/project --plugin-only typescript
Quality Assurance
The scanner itself is rigorously tested:
- 212 unit tests with 80% line coverage
- 6 fixture projects (Java, Python, Go, Kotlin-Ktor, TypeScript, Mixed monorepo)
- Golden snapshot comparison โ byte-for-byte output verification on every change
- 5 rounds of code review โ ~100 findings, all resolved
The generated BCL includes a built-in quality verification protocol (API reverse-lookup blind test, structure check, end-to-end requirement simulation).
Extending
Adding a new language takes ~200 lines:
- Create
plugins/language_<lang>.pyimplementing theLanguageScannerprotocol - Register in
core/registry.py+ add detection incore/detect.py - Add a fixture project + golden snapshot tests
Full guide: docs/07-how-to-extend.md
License
MIT
ไธญๆ่ฏดๆ
<p align="center"> <h2 align="center">code2wiki โ ่ฎฉ AI 3 ๅ้่ฏปๆ 50 ไธ่กไปฃ็ ็ไธๅก้ป่พ</h2> <p align="center"><strong>AI Agent Skill๏ผไธบๅคงๅๅ็ซฏ้กน็ฎ่ชๅจ็ๆไธๅกไธไธๆๅฑ๏ผBusiness Context Layer๏ผ๏ผๆใไปฃ็ ้ป็ฎฑใๅๆใไธๅก็ฅ่ฏๅฐๅพใใ</strong></p> <p align="center">ไปฃ็ ๆๆกฃ็ๆ | ไปฃ็ ่ฝฌ Wiki | ้กน็ฎ็ฅ่ฏๅฐๅพ | LLM ไธไธๆๆๅปบ | ไปฃ็ ็่งฃ</p> </p>็็น
ไฝ ๆไธไธช 20 ไธ่ก็ๅ็ซฏ้กน็ฎใๆฐไบบๅ ฅ่โโ่ฑ 2โ4 ๅจๆ่ฝๅผๅงๆๆไบงๅบใไฝ ่ฎฉ AI ๅ้ๆฑๅผๅโโๅฎๅ ไธบๆฒกๆไธๅกไธไธๆ่้ข็นๅนป่งใไฝ ๆณๅๆๆกฃโโไธไธชๆๅๅฐฑ่ฟๆถไบใ
code2wiki ่ชๅจ็ๆ็ปๆๅ็ไธๅกไธไธๆๅฑ๏ผBCL๏ผ๏ผ็ดๆฅไปๆบ็ ๆ ๅฐๅบไธๅกๅใๆต็จใๆฆๅฟตใ้ฃ้ฉ็นใๆจชๅๅ ณๆณจ็น๏ผๅฝขๆไธไปฝๆดป็ใๅฏ็ปดๆค็้กน็ฎ็ฅ่ฏๅฐๅพใ
ๆๆๆฐๆฎ
| ๆๆ | ๆฒกๆ code2wiki | ไฝฟ็จ code2wiki | ๆๅๅน ๅบฆ | | --- | --- | --- | --- | | ๆฐไบบไธๆๆถ้ด | 2โ4 ๅจๅฐไบงๅบ | 2โ3 ๅคฉๅฐไบงๅบ | ็ผฉ็ญ ~80% | | LLM ้ๆฑๅผๅไธไธๆ | ้่ฏปๆดไธชไปฃ็ ๅบ๏ผๆๅนป่ง๏ผ | ่็ฆ BCL ๆๆกฃ๏ผ~50 ไธชๆไปถ๏ผ | ไธไธๆ็ผฉๅ ~95% | | ไธๅกๆๆกฃ็ผๅ | ไบบๅทฅ็ผๅ๏ผ40โ80 ๅฐๆถ | ๆซๆๅจ 3 ๅ้ + AI ๅฏๅ 2โ4 ๅฐๆถ | ่็ ~90% ๆถ้ด | | API ๅๆฅๅ็กฎ็ | ้้ ่ฏปๆบ็ | ไป ็ๆๆกฃๅณๅฏ่พพๅฐ โฅ67% ๅ็กฎ็ | ๅณๆถๅฏๅฏผ่ช | | ๆๆกฃๆถๆๆง | ๅ ๅจๅ ่ฟๆถ | ๅข้ไฟๆค + ๅฎๆ้ๆซ | ๆ็ปญไฟ้ฒ |
ๅบๅๆต่ฏ้กน็ฎ๏ผ15 ไธ่ก Java/Spring ๅไฝ๏ผ38 ไธชไธๅกๅใ420+ API๏ผ๏ผ8 ไธ่ก Go ๅพฎๆๅก้็พคใ
ๅฎ่ฃ
code2wiki ๆฏไธไธช AI Agent Skill๏ผๅ ผๅฎน QoderWorkใTreaใClaude CodeใCursorใClineใCodex ็ญไธปๆต AI ็ผ็จๅฉๆใ
# ้่ฟ skills CLI ๅฎ่ฃ
๏ผๆจ่๏ผ
npx skills add woaillr-crypto/code2wiki
# ๅฎ่ฃ
ๅฐๆๅฎ Agent
npx skills add woaillr-crypto/code2wiki -a claude-code
npx skills add woaillr-crypto/code2wiki -a cursor
# ๅ
จๅฑๅฎ่ฃ
npx skills add woaillr-crypto/code2wiki -g
ๅฎ่ฃ ๅ๏ผ็ดๆฅๅฏนไฝ ็ AI ๅฉๆ่ฏด๏ผ
"็จ code2wiki ๅๆ่ฟไธช้กน็ฎ๏ผ็ๆไธๅกไธไธๆๅฑใ"
Agent ไผ่ชๅจ่ฐ็จ Skill๏ผ่ฟ่กๆซๆๅจ๏ผๅนถๅผๅง AI ๅฏๅใ
ๆๅจๅฎ่ฃ
git clone https://github.com/woaillr-crypto/code2wiki.git
# ๅฐ SKILL.md ๅ scripts/ ๅคๅถๅฐไฝ ็ Agent skills ็ฎๅฝ
ๅทฅไฝๅ็
ไธค้ถๆฎตๆง่ก๏ผๆซๆๅจ๏ผ่ชๅจๅ๏ผ3 ๅ้๏ผ+ AI ๅฏๅ๏ผAgent ้ฉฑๅจ๏ผ2โ4 ๅฐๆถ๏ผ
Phase 1 โ ๆซๆๅจ็ๆ้ชจๆถ๏ผ้ๆๅๆๆบ็ ๏ผไบงๅบ็ฎๅฝ้ชจๆถใๆไปถ็ดขๅผใ่ฐ็จ้พใGit ็ญ็นใๅ่ๅใ่ฟไธๆญฅๆฏ็บฏไปฃ็ ็บง็ดขๅผโโๆ่ทฏๅพใ็ฑปๅใๆนๆณ็ญพๅ๏ผไฝๆฒกๆไธๅก่ฏญไนใ
Phase 2 โ AI ๅฏๅ๏ผAgent ๆ นๆฎไผๅ ็บงๆๅ้ๆฉ 5โ15 ไธชๆ ธๅฟๅ๏ผ่ฏปๅๆฏไธชๅ็ 5โ
Truncated for display โ read the full file on GitHub.
Related Skills
claude-mem
113.5kPersistent Context Across Sessions for Every Agent โ Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
109.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu โ one CLI, zero API fees.
Understand-Anything
90.9kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit โ see the Safety scan above for what the skill file itself contains.
