Agent skill
update-knowledge-base
Analyze code changes and update KNOWLEDGE_BASE.md with architectural and feature changes.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/update-knowledge-base
SKILL.md
Update Knowledge Base
Purpose
Automatically analyze recent code changes and update the project's knowledge base documentation to reflect current architecture, features, and conventions.
Instructions
-
Analyze Recent Changes
- Review git diff or recent commits
- Identify new adapters, commands, or features
- Note architectural changes or new patterns
-
Read Current Knowledge Base
- Check if KNOWLEDGE_BASE.md exists
- If not, create it with proper structure
- If exists, identify sections needing updates
-
Update Sections
- Architecture: Update if new adapters or core components added
- Features: Document new CLI commands or options
- Conventions: Note any new coding patterns established
- API Changes: Document breaking changes or deprecations
-
Verify Accuracy
- Cross-reference with actual source code
- Ensure examples are runnable
- Check that all documented features exist
-
Format Consistently
- Use consistent markdown formatting
- Include code examples where helpful
- Maintain table format for command references
Knowledge Base Structure
# AI Rules Sync - Knowledge Base
## Architecture Overview
- Adapter system description
- CLI layer structure
- Config management
## Supported Tools
| Tool | Types | Source Dir | Target Dir |
## Commands Reference
| Command | Description | Example |
## Adapter Implementation
- How to add new adapters
- Required interfaces
## Configuration
- ai-rules-sync.json structure
- Local/private rules
## Changelog
- Recent significant changes
Output
After running this skill:
- KNOWLEDGE_BASE.md is created or updated
- Changes reflect current codebase state
- Documentation is accurate and complete
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?