knowledge
Project Cortex - Structural Knowledge Injection for LLM
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Knowledge Skill Policy
Router Logic
Scenario 1: User asks to "commit", "save", or "finish"
-
Observe: Call
get_development_context() - Analyze: Extract commit types, scopes, and active guardrails
-
Execute: Use
gitskill to commit (if Client lacks git) - Verify: Ensure message follows format
Scenario 2: User asks "how do I...", "what is...", "explain..."
- Analyze: Identify topic from user question
-
Search: Call
consult_architecture_doc(topic) - Synthesize: Summarize relevant information
- Respond: Provide concise answer with source references
Scenario 3: User asks to write documentation
-
Prepare: Call
get_writing_memory()FIRST - Follow: Apply writing style rules
-
Polish: Use
writerskill for linting
Scenario 4: User asks to write code (Python, Nix, etc.)
-
Standards: Call
get_language_standards(lang) -
Context: Call
get_development_context() - Execute: Use appropriate skill (python, terminal, etc.)
Workflow: Commit Flow
User: commit
Claude:
1. get_development_context() → {scopes: ["mcp", "core"], guardrails: ["vale"]}
2. Generate message following format: "type(scope): description"
3. Warn user about guardrails if applicable
4. Execute git_commit
Workflow: Documentation Flow
User: write docs for feature X
Claude:
1. get_writing_memory() → Load writing rules
2. consult_architecture_doc("documentation") → Get doc structure
3. Write document following rules
4. Run vale check if available
Anti-Patterns
- Don't use knowledge tools as execution shortcuts
- Don't skip loading writing memory before documentation
-
Don't ignore guardrails returned by
get_development_context()
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-02
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!