lbb00

update-knowledge-base

6
0
# Install this skill:
npx skills add lbb00/ai-rules-sync --skill "update-knowledge-base"

Install specific skill from multi-skill repository

# Description

Analyze code changes and update KNOWLEDGE_BASE.md with architectural and feature changes.

# SKILL.md


name: update-knowledge-base
description: Analyze code changes and update KNOWLEDGE_BASE.md with architectural and feature changes.


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

  1. Analyze Recent Changes
  2. Review git diff or recent commits
  3. Identify new adapters, commands, or features
  4. Note architectural changes or new patterns

  5. Read Current Knowledge Base

  6. Check if KNOWLEDGE_BASE.md exists
  7. If not, create it with proper structure
  8. If exists, identify sections needing updates

  9. Update Sections

  10. Architecture: Update if new adapters or core components added
  11. Features: Document new CLI commands or options
  12. Conventions: Note any new coding patterns established
  13. API Changes: Document breaking changes or deprecations

  14. Verify Accuracy

  15. Cross-reference with actual source code
  16. Ensure examples are runnable
  17. Check that all documented features exist

  18. Format Consistently

  19. Use consistent markdown formatting
  20. Include code examples where helpful
  21. 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

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.