Skip to main content

project-knowledge

Shared project knowledge document that human and agent can both read and update. Aggregates state from /project-state, /checkpoint, /memory into a single PROJECT_KNOWLEDGE.md file, while syncing searchable chunks into /memory. Coordinator skill — composes rather than reimplements.

来源信息

仓库
grahama1970/agent-stack-public
最近来源活动
2026年9月24日 15:51
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
8 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
project-knowledge
description
Shared project knowledge document that human and agent can both read and update. Aggregates state from /project-state, /checkpoint, /memory into a single PROJECT_KNOWLEDGE.md file, while syncing searchable chunks into /memory. Coordinator skill — composes rather than reimplements.
triggers
["project knowledge","what do we know","current understanding","update knowledge","sync knowledge"]
allowed-tools
["Bash","Read","Write","Edit","Glob","Grep"]
provides
["project-knowledge-file","shared-context"]
composes
["project-state","checkpoint","memory","agentic-evals"]
taxonomy
["knowledge-management","coordination","documentation"]
disciplines
["memory-knowledge","human-collaboration"]
> STOP. READ THIS ENTIRE SKILL.MD BEFORE CALLING ANY ENDPOINT. # /project-knowledge Shared project knowledge document for human and agent collaboration. ## Why This Exists The gap between individual lessons (/memory) and heavy documentation (/create-walkthrough): | Skill | Retrieval | Update | |-------|-----------|--------| | `/memory` | Requires knowing what to query | Individual lessons | | `/checkpoint` | Git log | Append-only commits | | `/create-walkthrough` | File on disk | Heavy (interview + persona) | | **`/project-knowledge`** | **Read file directly** | **Incremental section updates** | This skill maintains two surfaces: 1. `PROJECT_KNOWLEDGE.md` as the human-readable projection 2. `/memory` as the agent retrieval surface It does not own skill-chain records. Proven workflow chains are written by `/checkpoint --skills` or the typed chain backfill lane in `/mine-transcripts` into the `skill_chains` collection. `/project-knowledge` may mention those chains as project context, but its sync command writes only `project_knowledge` documents and chunks. The file is for humans. Agents should still be memory-first. This skill therefore: 1. Lets humans read/edit the markdown file directly 2. Lets agents update the same knowledge incrementally 3. Automatically syncs each updated section into `/memory` 4. Keeps an aggregate `project_knowledge` document for structured recall ## Commands ```bash # Read current knowledge (aggregates from sources) ./run.sh read # Read with live refresh from /project-state ./run.sh read --refresh # Update a specific section ./run.sh update "Current Understanding" "Lineage backfill works at 25K batches" # Add a decision ./run.sh decide "Batch at 25K not 225K" "Daemon 502s at ~27K docs" # Add an open question ./run.sh question "Cascade notification when lineage deps change?" # Sync to /memory (repair/backfill; updates auto-sync by default) ./run.sh sync # Initialize PROJECT_KNOWLEDGE.md in current directory ./run.sh init # Check drift between file and actual state ./run.sh diff ``` ## File Structure `PROJECT_KNOWLEDGE.md` lives in the project root: ```markdown # Project Knowledge: {project-name} **Last updated:** YYYY-MM-DD HH:MM by {human|agent} **Status:** {Active development|Maintenance|Archived} ## Current Understanding - Key insight 1 - Key insight 2 ## Recent Decisions | Date | Decision | Why | |------|----------|-----| | YYYY-MM-DD | What was decided | Rationale | ## Open Questions - [ ] Question 1 - [ ] Question 2 ## Key Files | File | Purpose | |------|---------| | path/to/file.py | What it does | ## Infrastructure State <!-- Auto-populated from /project-state --quick --> ``` ## Composition `/project-knowledge` coordinates existing skills: | Source | What It Provides | When Used | |--------|------------------|-----------| | `/project-state --quick` | Infrastructure health | `read --refresh`, `diff` | | `/checkpoint --recent` | Last N commits + skill chains | `read --refresh` | | `/memory recall "project:X"` | Prior learnings | `read --refresh`, `sync` | | `git log --oneline -10` | Recent commit messages | `read --refresh` | ## Hook Integration Recommended hooks to keep knowledge fresh: ```json { "hooks": { "PostToolUse": [ { "matcher": {"tool_name": "checkpoint"}, "command": "~/.claude/skills/project-knowledge/run.sh update-from-checkpoint" } ] } } ``` ## Sync to Memory Every update command syncs to `/memory` automatically. `./run.sh sync` is still available for repair/backfill and writes: ```bash # What gets synced: # 1. Aggregate structured doc → collection=project_knowledge # 2. Each section is chunked into recall-friendly chunk documents # 3. Each chunk gets tags: project_knowledge, project:{name}, section:{slug} # It does not write skill_chains; use /checkpoint or /mine-transcripts # chain backfill for that. ``` This enables cross-project recall: ```bash /memory recall "project:memory lineage backfill" ``` For agents, this is the authoritative retrieval path. Do not treat the markdown file as the only source of truth. ## Common Mistakes ```bash # WRONG: Create new file each session ./run.sh init # when file already exists # RIGHT: Read and update existing file ./run.sh read ./run.sh update "Current Understanding" "new insight" # WRONG: Full rewrite of section ./run.sh update "Current Understanding" "completely new content replacing everything" # RIGHT: Append to section ./run.sh update "Current Understanding" --append "additional insight" # WRONG: Skip sync, knowledge stays local # RIGHT: Updates already sync to /memory ./run.sh update "Current Understanding" "new insight" # Use sync only for repair/backfill ./run.sh sync ``` ## Agent Retrieval Pattern Humans can read the file directly: ```python knowledge_file = Path.cwd() / "PROJECT_KNOWLEDGE.md" if knowledge_file.exists(): print(f"Reading human-facing project knowledge from {knowledge_file}") ``` Agents should recall from `/memory` first: ```bash /memory recall "project:{name} current understanding" ``` Use the file as a readable projection, not as the primary retrieval surface for problem solving.
在 GitHub 查看