Skip to content
Skills Library
Programming · Analysis

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.

Licence
MIT
Last repository change
31.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
2
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 31.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 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

  1. Usage
  2. Step 1: deterministic artifacts (no model, stdlib Python 3.9+)
  3. Step 2: narrative docs (you write these)
  4. Step 3: report
Original SKILL.md headings · 41 lines, 245 words
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

RepositoryScoreLicence
This page · kkxdev/claude-skills100MIT
arctan303/creator.skill100MIT
Daaaaave/agentic-workspace-core100MIT

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…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.