project-knowledge
/project-knowledge
Generate project knowledge for any git repo: code graph, knowledge graph, code wiki, and AI-written domain docs under .ai/. Use when onboarding to a repo, asked to document a codebase, or to refresh stale .ai/ knowledge.
- Author
- kkxdev ↗
- Repository
- claude-skills ↗
- Licence
- MIT
- Last repository change
- 31.10.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 2
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 31.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 2 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/build_knowledge.py, scripts/codegraph.py
What it does and when to use it
Generate project knowledge for any git repo: code graph, knowledge graph, code wiki, and AI-written domain docs under .ai/. Use when onboarding to a repo, asked to document a codebase, or to refresh stale .ai/ knowledge.
Original author description
Generate project knowledge for any git repo: code graph, knowledge graph, code wiki, and AI-written domain docs under .ai/. Use when onboarding to a repo, asked to document a codebase, or to refresh stale .ai/ knowledge.
How it works
- Usage
- Step 1: deterministic artifacts (no model, stdlib Python 3.9+)
- Step 2: narrative docs (you write these)
- Step 3: report
SKILL.md preview
---
name: project-knowledge
description: "Generate project knowledge for any git repo: code graph, knowledge graph, code wiki, and AI-written domain docs under .ai/. Use when onboarding to a repo, asked to document a codebase, or to refresh stale .ai/ knowledge."
trigger: /project-knowledge
---
# /project-knowledge
Deterministic facts first (code graph, knowledge graph, code wiki), then narrative docs written from those facts.
## Usage
```
/project-knowledge # current repo
/project-knowledge <path> # another repo
```
## Step 1: deterministic artifacts (no model, stdlib Python 3.9+)
```
python3 ~/.claude/skills/project-knowledge/scripts/build_knowledge.py <repo> [--rules rules.json] [--name NAME]
```
Writes (all derived from the code, nothing invented; capped in size):
- `.ai/graph/code-graph.json`: files, symbols, import edges (Python, JS/TS, PHP, Java)
- `.ai/graph/knowledge-graph.json`: modules, hub files, optional rules linked to the modules they govern
- `.ai/wiki/code-wiki.md`: most-imported hub files + module map with top symbols
- `.ai/wiki/knowledge-wiki.md`: optional rules grouped by kind
`rules.json` is optional: `[{"id","kind","text","scope_paths","source"}]`, kind one of convention/decision/constraint/gotcha/other. Only include rules the user has confirmed.
## Step 2: narrative docs (you write these)
Read `.ai/wiki/code-wiki.md` and the hub files first; do not re-explore the whole tree. Then write:
- `.ai/domain/*.md`: one file per business domain/module cluster: purpose, key entry points, invariants, gotchas. Cite real paths.
- `.ai/danger-zones.yaml`: hub files and fragile areas (use the hub list as the starting evidence).
- `CLAUDE.md`: minimal; point to `.ai/wiki/code-wiki.md` and `.ai/domain/`. Do not overwrite an existing CLAUDE.md; append a short "Project knowledge" section instead.
Rules: state only what you verified in code; mark anything inferred as such; keep files short, they are read on demand.
## Step 3: report
Summarise files written and graph stats. Do not commit; leave the diff for the user to review. Suggest adding `.ai/graph/*.json` to `.gitignore` if the repo is large.
Files in this package (3)
- SKILL.md 2 KB
- scripts/build_knowledge.py 7 KB
- scripts/codegraph.py 19 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · kkxdev/claude-skills | 100 | MIT |
| arctan303/creator.skill | 100 | MIT |
| Daaaaave/agentic-workspace-core | 100 | MIT |
Database snapshot: 13.11.2026 · package version eaa6362b59cb (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100graph
Use when the user wants to build, refresh, or visualize the repo's knowledge graph — code structure plus the committed wiki/ — via graphify. Produces an interactive graph + a GRAPH_REPORT.md of God Nodes, surprising connections, and suggested questions. Trigger on "/graph",… - 90knowledge-graph
Offline per-repo code knowledge graph (`kg` CLI). Use for graph status, index/refresh/reset, blast radius, what depends on X, or finding the code for X. - 90lat-md-knowledge-graph
Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections. Use when AGENTS.md/CLAUDE.md is too flat for a large codebase or when a custom harness needs durable structured project memory. - 100wiki-generation
Generate structured documentation from codebases — architecture mapping, page writing, and onboarding guides. Use when asked to create a wiki, document a repo, generate onboarding docs, map architecture for documentation, or produce a documentation plan from source code. - 100wiki-generation
Analyze a repository and generate or incrementally update an agent-friendly wiki. Used by /claude-wiki:init and /claude-wiki:update, or when the user asks to generate/refresh codebase documentation as a wiki. - 95graphify
Use for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists. Turns any input (code, docs, papers, images, videos) into a persistent knowledge graph with god nodes, community detection, and…