@techwavedev/agi-agent-kit 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +147 -0
- package/bin/init.js +471 -0
- package/package.json +36 -0
- package/templates/.agent/agents/backend-specialist.md +263 -0
- package/templates/.agent/agents/code-archaeologist.md +106 -0
- package/templates/.agent/agents/database-architect.md +226 -0
- package/templates/.agent/agents/debugger.md +225 -0
- package/templates/.agent/agents/devops-engineer.md +242 -0
- package/templates/.agent/agents/documentation-writer.md +104 -0
- package/templates/.agent/agents/explorer-agent.md +73 -0
- package/templates/.agent/agents/frontend-specialist.md +556 -0
- package/templates/.agent/agents/game-developer.md +162 -0
- package/templates/.agent/agents/mobile-developer.md +377 -0
- package/templates/.agent/agents/orchestrator.md +416 -0
- package/templates/.agent/agents/penetration-tester.md +188 -0
- package/templates/.agent/agents/performance-optimizer.md +187 -0
- package/templates/.agent/agents/product-manager.md +112 -0
- package/templates/.agent/agents/project-planner.md +403 -0
- package/templates/.agent/agents/qa-automation-engineer.md +109 -0
- package/templates/.agent/agents/security-auditor.md +170 -0
- package/templates/.agent/agents/seo-specialist.md +111 -0
- package/templates/.agent/agents/test-engineer.md +158 -0
- package/templates/.agent/rules/GEMINI.md +253 -0
- package/templates/.agent/workflows/brainstorm.md +113 -0
- package/templates/.agent/workflows/create.md +59 -0
- package/templates/.agent/workflows/debug.md +103 -0
- package/templates/.agent/workflows/deploy.md +176 -0
- package/templates/.agent/workflows/enhance.md +63 -0
- package/templates/.agent/workflows/orchestrate.md +237 -0
- package/templates/.agent/workflows/plan.md +89 -0
- package/templates/.agent/workflows/preview.md +81 -0
- package/templates/.agent/workflows/status.md +86 -0
- package/templates/.agent/workflows/test.md +144 -0
- package/templates/.agent/workflows/ui-ux-pro-max.md +296 -0
- package/templates/base/.env.example +54 -0
- package/templates/base/AGENTS.md +463 -0
- package/templates/base/requirements.txt +6 -0
- package/templates/base/skill-creator/LICENSE.txt +202 -0
- package/templates/base/skill-creator/SKILL_skillcreator.md +389 -0
- package/templates/base/skill-creator/references/output-patterns.md +82 -0
- package/templates/base/skill-creator/references/workflows.md +28 -0
- package/templates/base/skill-creator/scripts/init_skill.py +304 -0
- package/templates/base/skill-creator/scripts/package_skill.py +110 -0
- package/templates/base/skill-creator/scripts/quick_validate.py +95 -0
- package/templates/base/skill-creator/scripts/update_catalog.py +371 -0
- package/templates/skills/core/README.md +21 -0
- package/templates/skills/core/documentation/SKILL.md +351 -0
- package/templates/skills/core/documentation/references/best_practices.md +201 -0
- package/templates/skills/core/documentation/scripts/analyze_code.py +307 -0
- package/templates/skills/core/documentation/scripts/detect_changes.py +460 -0
- package/templates/skills/core/documentation/scripts/generate_changelog.py +312 -0
- package/templates/skills/core/documentation/scripts/sync_docs.py +272 -0
- package/templates/skills/core/documentation/scripts/update_skill_docs.py +366 -0
- package/templates/skills/core/pdf-reader/SKILL.md +104 -0
- package/templates/skills/core/pdf-reader/references/pdf_libraries.md +83 -0
- package/templates/skills/core/pdf-reader/scripts/extract_text.py +295 -0
- package/templates/skills/core/qdrant-memory/SKILL.md +435 -0
- package/templates/skills/core/qdrant-memory/references/advanced_patterns.md +375 -0
- package/templates/skills/core/qdrant-memory/references/collection_schemas.md +229 -0
- package/templates/skills/core/qdrant-memory/references/complete_guide.md +724 -0
- package/templates/skills/core/qdrant-memory/references/embedding_models.md +325 -0
- package/templates/skills/core/qdrant-memory/scripts/benchmark_token_savings.py +640 -0
- package/templates/skills/core/qdrant-memory/scripts/embedding_utils.py +323 -0
- package/templates/skills/core/qdrant-memory/scripts/hybrid_search.py +214 -0
- package/templates/skills/core/qdrant-memory/scripts/init_collection.py +193 -0
- package/templates/skills/core/qdrant-memory/scripts/memory_retrieval.py +345 -0
- package/templates/skills/core/qdrant-memory/scripts/semantic_cache.py +282 -0
- package/templates/skills/core/qdrant-memory/scripts/test_skill.py +655 -0
- package/templates/skills/core/webcrawler/SKILL.md +292 -0
- package/templates/skills/core/webcrawler/references/advanced_crawling.md +181 -0
- package/templates/skills/core/webcrawler/scripts/crawl_docs.py +532 -0
- package/templates/skills/core/webcrawler/scripts/extract_page.py +189 -0
- package/templates/skills/core/webcrawler/scripts/filter_docs.py +200 -0
- package/templates/skills/knowledge/api-patterns/SKILL.md +81 -0
- package/templates/skills/knowledge/api-patterns/api-style.md +42 -0
- package/templates/skills/knowledge/api-patterns/auth.md +24 -0
- package/templates/skills/knowledge/api-patterns/documentation.md +26 -0
- package/templates/skills/knowledge/api-patterns/graphql.md +41 -0
- package/templates/skills/knowledge/api-patterns/rate-limiting.md +31 -0
- package/templates/skills/knowledge/api-patterns/response.md +37 -0
- package/templates/skills/knowledge/api-patterns/rest.md +40 -0
- package/templates/skills/knowledge/api-patterns/scripts/api_validator.py +211 -0
- package/templates/skills/knowledge/api-patterns/security-testing.md +122 -0
- package/templates/skills/knowledge/api-patterns/trpc.md +41 -0
- package/templates/skills/knowledge/api-patterns/versioning.md +22 -0
- package/templates/skills/knowledge/app-builder/SKILL.md +75 -0
- package/templates/skills/knowledge/app-builder/agent-coordination.md +71 -0
- package/templates/skills/knowledge/app-builder/feature-building.md +53 -0
- package/templates/skills/knowledge/app-builder/project-detection.md +34 -0
- package/templates/skills/knowledge/app-builder/scaffolding.md +118 -0
- package/templates/skills/knowledge/app-builder/tech-stack.md +40 -0
- package/templates/skills/knowledge/app-builder/templates/SKILL.md +39 -0
- package/templates/skills/knowledge/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/templates/skills/knowledge/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/templates/skills/knowledge/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/templates/skills/knowledge/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/templates/skills/knowledge/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/templates/skills/knowledge/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/templates/skills/knowledge/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/templates/skills/knowledge/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/templates/skills/knowledge/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/templates/skills/knowledge/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/templates/skills/knowledge/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/templates/skills/knowledge/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/templates/skills/knowledge/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/templates/skills/knowledge/architecture/SKILL.md +55 -0
- package/templates/skills/knowledge/architecture/context-discovery.md +43 -0
- package/templates/skills/knowledge/architecture/examples.md +94 -0
- package/templates/skills/knowledge/architecture/pattern-selection.md +68 -0
- package/templates/skills/knowledge/architecture/patterns-reference.md +50 -0
- package/templates/skills/knowledge/architecture/trade-off-analysis.md +77 -0
- package/templates/skills/knowledge/bash-linux/SKILL.md +199 -0
- package/templates/skills/knowledge/behavioral-modes/SKILL.md +242 -0
- package/templates/skills/knowledge/brainstorming/SKILL.md +163 -0
- package/templates/skills/knowledge/brainstorming/dynamic-questioning.md +350 -0
- package/templates/skills/knowledge/clean-code/SKILL.md +201 -0
- package/templates/skills/knowledge/code-review-checklist/SKILL.md +109 -0
- package/templates/skills/knowledge/database-design/SKILL.md +52 -0
- package/templates/skills/knowledge/database-design/database-selection.md +43 -0
- package/templates/skills/knowledge/database-design/indexing.md +39 -0
- package/templates/skills/knowledge/database-design/migrations.md +48 -0
- package/templates/skills/knowledge/database-design/optimization.md +36 -0
- package/templates/skills/knowledge/database-design/orm-selection.md +30 -0
- package/templates/skills/knowledge/database-design/schema-design.md +56 -0
- package/templates/skills/knowledge/database-design/scripts/schema_validator.py +172 -0
- package/templates/skills/knowledge/deployment-procedures/SKILL.md +241 -0
- package/templates/skills/knowledge/doc.md +177 -0
- package/templates/skills/knowledge/documentation-templates/SKILL.md +194 -0
- package/templates/skills/knowledge/frontend-design/SKILL.md +396 -0
- package/templates/skills/knowledge/frontend-design/animation-guide.md +331 -0
- package/templates/skills/knowledge/frontend-design/color-system.md +311 -0
- package/templates/skills/knowledge/frontend-design/decision-trees.md +418 -0
- package/templates/skills/knowledge/frontend-design/motion-graphics.md +306 -0
- package/templates/skills/knowledge/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/skills/knowledge/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/skills/knowledge/frontend-design/typography-system.md +345 -0
- package/templates/skills/knowledge/frontend-design/ux-psychology.md +541 -0
- package/templates/skills/knowledge/frontend-design/visual-effects.md +383 -0
- package/templates/skills/knowledge/game-development/2d-games/SKILL.md +119 -0
- package/templates/skills/knowledge/game-development/3d-games/SKILL.md +135 -0
- package/templates/skills/knowledge/game-development/SKILL.md +167 -0
- package/templates/skills/knowledge/game-development/game-art/SKILL.md +185 -0
- package/templates/skills/knowledge/game-development/game-audio/SKILL.md +190 -0
- package/templates/skills/knowledge/game-development/game-design/SKILL.md +129 -0
- package/templates/skills/knowledge/game-development/mobile-games/SKILL.md +108 -0
- package/templates/skills/knowledge/game-development/multiplayer/SKILL.md +132 -0
- package/templates/skills/knowledge/game-development/pc-games/SKILL.md +144 -0
- package/templates/skills/knowledge/game-development/vr-ar/SKILL.md +123 -0
- package/templates/skills/knowledge/game-development/web-games/SKILL.md +150 -0
- package/templates/skills/knowledge/geo-fundamentals/SKILL.md +156 -0
- package/templates/skills/knowledge/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/templates/skills/knowledge/i18n-localization/SKILL.md +154 -0
- package/templates/skills/knowledge/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/skills/knowledge/intelligent-routing/SKILL.md +334 -0
- package/templates/skills/knowledge/lint-and-validate/SKILL.md +45 -0
- package/templates/skills/knowledge/lint-and-validate/scripts/lint_runner.py +172 -0
- package/templates/skills/knowledge/lint-and-validate/scripts/type_coverage.py +173 -0
- package/templates/skills/knowledge/mcp-builder/SKILL.md +176 -0
- package/templates/skills/knowledge/mobile-design/SKILL.md +394 -0
- package/templates/skills/knowledge/mobile-design/decision-trees.md +516 -0
- package/templates/skills/knowledge/mobile-design/mobile-backend.md +491 -0
- package/templates/skills/knowledge/mobile-design/mobile-color-system.md +420 -0
- package/templates/skills/knowledge/mobile-design/mobile-debugging.md +122 -0
- package/templates/skills/knowledge/mobile-design/mobile-design-thinking.md +357 -0
- package/templates/skills/knowledge/mobile-design/mobile-navigation.md +458 -0
- package/templates/skills/knowledge/mobile-design/mobile-performance.md +767 -0
- package/templates/skills/knowledge/mobile-design/mobile-testing.md +356 -0
- package/templates/skills/knowledge/mobile-design/mobile-typography.md +433 -0
- package/templates/skills/knowledge/mobile-design/platform-android.md +666 -0
- package/templates/skills/knowledge/mobile-design/platform-ios.md +561 -0
- package/templates/skills/knowledge/mobile-design/scripts/mobile_audit.py +670 -0
- package/templates/skills/knowledge/mobile-design/touch-psychology.md +537 -0
- package/templates/skills/knowledge/nextjs-best-practices/SKILL.md +203 -0
- package/templates/skills/knowledge/nodejs-best-practices/SKILL.md +333 -0
- package/templates/skills/knowledge/parallel-agents/SKILL.md +175 -0
- package/templates/skills/knowledge/performance-profiling/SKILL.md +143 -0
- package/templates/skills/knowledge/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/templates/skills/knowledge/plan-writing/SKILL.md +152 -0
- package/templates/skills/knowledge/powershell-windows/SKILL.md +167 -0
- package/templates/skills/knowledge/python-patterns/SKILL.md +441 -0
- package/templates/skills/knowledge/react-patterns/SKILL.md +198 -0
- package/templates/skills/knowledge/red-team-tactics/SKILL.md +199 -0
- package/templates/skills/knowledge/seo-fundamentals/SKILL.md +129 -0
- package/templates/skills/knowledge/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/templates/skills/knowledge/server-management/SKILL.md +161 -0
- package/templates/skills/knowledge/systematic-debugging/SKILL.md +109 -0
- package/templates/skills/knowledge/tailwind-patterns/SKILL.md +269 -0
- package/templates/skills/knowledge/tdd-workflow/SKILL.md +149 -0
- package/templates/skills/knowledge/testing-patterns/SKILL.md +178 -0
- package/templates/skills/knowledge/testing-patterns/scripts/test_runner.py +219 -0
- package/templates/skills/knowledge/vulnerability-scanner/SKILL.md +276 -0
- package/templates/skills/knowledge/vulnerability-scanner/checklists.md +121 -0
- package/templates/skills/knowledge/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/templates/skills/knowledge/webapp-testing/SKILL.md +187 -0
- package/templates/skills/knowledge/webapp-testing/scripts/playwright_runner.py +173 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: documentation
|
|
3
|
+
description: "Automated documentation maintenance and generation skill. Triggers when: (1) Code is added, changed, updated, or deleted in any skill, (2) New scripts or references are created, (3) SKILL.md files are modified, (4) User requests documentation updates, (5) Skills catalog needs regeneration, (6) README or AGENTS.md need updates reflecting code changes. Use for generating technical documentation, updating docs after code changes, producing changelogs, ensuring documentation stays synchronized with the codebase, and maintaining the skills catalog."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Skill
|
|
7
|
+
|
|
8
|
+
Intelligent documentation maintenance agent that automatically detects code changes across skills and the repository, then updates, upgrades, or generates documentation to keep everything synchronized.
|
|
9
|
+
|
|
10
|
+
> **Last Updated:** 2026-01-23
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Detect changes and generate a documentation update report
|
|
18
|
+
python skills/documentation/scripts/detect_changes.py \
|
|
19
|
+
--scope skills/ \
|
|
20
|
+
--output .tmp/docs/change-report.md
|
|
21
|
+
|
|
22
|
+
# Update documentation for a specific skill after changes
|
|
23
|
+
python skills/documentation/scripts/update_skill_docs.py \
|
|
24
|
+
--skill qdrant-memory \
|
|
25
|
+
--changelog
|
|
26
|
+
|
|
27
|
+
# Full repository documentation sync
|
|
28
|
+
python skills/documentation/scripts/sync_docs.py \
|
|
29
|
+
--skills-dir skills/ \
|
|
30
|
+
--update-catalog \
|
|
31
|
+
--update-readme
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Core Workflow
|
|
37
|
+
|
|
38
|
+
1. **Detect Changes** — Scan for code changes (added, modified, deleted files)
|
|
39
|
+
2. **Analyze Impact** — Determine which documentation needs updating
|
|
40
|
+
3. **Generate Updates** — Produce updated or new documentation
|
|
41
|
+
4. **Synchronize Catalog** — Update SKILLS_CATALOG.md if skills changed
|
|
42
|
+
5. **Produce Changelog** — Create a changelog entry for significant changes
|
|
43
|
+
6. **Validate** — Verify all documentation is synchronized
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Scripts
|
|
48
|
+
|
|
49
|
+
### `detect_changes.py` — Change Detection Engine
|
|
50
|
+
|
|
51
|
+
Scans the repository or specific directories to detect code changes since the last documentation update.
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
python skills/documentation/scripts/detect_changes.py \
|
|
55
|
+
--scope <path> # Directory to scan (required)
|
|
56
|
+
--since <commit|date> # Compare since commit/date (default: last tag)
|
|
57
|
+
--output <file> # Output report file (default: stdout)
|
|
58
|
+
--format <md|json> # Output format (default: md)
|
|
59
|
+
--include-git # Use git diff for precise changes (default: true)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Outputs:**
|
|
63
|
+
|
|
64
|
+
- List of added files with paths
|
|
65
|
+
- List of modified files with change summaries
|
|
66
|
+
- List of deleted files
|
|
67
|
+
- Impacted skills and documentation
|
|
68
|
+
|
|
69
|
+
### `update_skill_docs.py` — Skill Documentation Updater
|
|
70
|
+
|
|
71
|
+
Updates documentation for a specific skill based on detected changes.
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
python skills/documentation/scripts/update_skill_docs.py \
|
|
75
|
+
--skill <skill-name> # Skill to update (required)
|
|
76
|
+
--skills-dir <path> # Skills directory (default: skills/)
|
|
77
|
+
--changelog # Generate changelog entry (optional)
|
|
78
|
+
--analyze-scripts # Analyze script docstrings (default: true)
|
|
79
|
+
--update-references # Update references list (default: true)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Capabilities:**
|
|
83
|
+
|
|
84
|
+
- Extracts docstrings from Python scripts
|
|
85
|
+
- Updates SKILL.md sections: Scripts, References, Quick Start
|
|
86
|
+
- Adds "Last Updated" timestamp
|
|
87
|
+
- Generates changelog entries
|
|
88
|
+
|
|
89
|
+
### `sync_docs.py` — Full Documentation Synchronization
|
|
90
|
+
|
|
91
|
+
Orchestrates a complete documentation update across the entire repository.
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
python skills/documentation/scripts/sync_docs.py \
|
|
95
|
+
--skills-dir <path> # Skills directory (required)
|
|
96
|
+
--update-catalog # Update SKILLS_CATALOG.md (default: true)
|
|
97
|
+
--update-readme # Update README.md if exists (optional)
|
|
98
|
+
--dry-run # Preview changes without writing (optional)
|
|
99
|
+
--report <file> # Save sync report (optional)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### `generate_changelog.py` — Changelog Generator
|
|
103
|
+
|
|
104
|
+
Creates structured changelog entries from detected changes.
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
python skills/documentation/scripts/generate_changelog.py \
|
|
108
|
+
--scope <path> # Directory to analyze (required)
|
|
109
|
+
--since <commit|date> # Changes since (required)
|
|
110
|
+
--output <file> # Output file (default: CHANGELOG.md)
|
|
111
|
+
--format <keep-a-changelog> # Changelog format (default: keep-a-changelog)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### `analyze_code.py` — Code Analysis for Documentation
|
|
115
|
+
|
|
116
|
+
Analyzes Python files to extract documentation-relevant information.
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
python skills/documentation/scripts/analyze_code.py \
|
|
120
|
+
--file <path> # File to analyze (required)
|
|
121
|
+
--output <format> # Output: summary, full, json (default: summary)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Extracts:**
|
|
125
|
+
|
|
126
|
+
- Module docstrings
|
|
127
|
+
- Function/class signatures
|
|
128
|
+
- Parameter descriptions
|
|
129
|
+
- Return types
|
|
130
|
+
- Usage examples from docstrings
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Configuration
|
|
135
|
+
|
|
136
|
+
### Documentation Update Triggers
|
|
137
|
+
|
|
138
|
+
The skill tracks and responds to these change types:
|
|
139
|
+
|
|
140
|
+
| File Pattern | Documentation Impact |
|
|
141
|
+
| -------------------------- | ------------------------------- |
|
|
142
|
+
| `skills/*/SKILL.md` | Skills catalog update required |
|
|
143
|
+
| `skills/*/scripts/*.py` | Skill scripts section update |
|
|
144
|
+
| `skills/*/references/*.md` | Skill references section update |
|
|
145
|
+
| `execution/*.py` | Execution scripts documentation |
|
|
146
|
+
| `directives/*.md` | Directives catalog if exists |
|
|
147
|
+
| `AGENTS.md` | Architecture documentation |
|
|
148
|
+
| `*.py` (any) | Potential README, module docs |
|
|
149
|
+
|
|
150
|
+
### Ignore Patterns
|
|
151
|
+
|
|
152
|
+
Files excluded from documentation tracking:
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
.tmp/
|
|
156
|
+
.git/
|
|
157
|
+
__pycache__/
|
|
158
|
+
*.pyc
|
|
159
|
+
.DS_Store
|
|
160
|
+
node_modules/
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Output Formats
|
|
166
|
+
|
|
167
|
+
### Change Report (Markdown)
|
|
168
|
+
|
|
169
|
+
```markdown
|
|
170
|
+
# Documentation Change Report
|
|
171
|
+
|
|
172
|
+
> Generated: 2026-01-23 13:45
|
|
173
|
+
|
|
174
|
+
## Summary
|
|
175
|
+
|
|
176
|
+
- **Added:** 3 files
|
|
177
|
+
- **Modified:** 5 files
|
|
178
|
+
- **Deleted:** 1 file
|
|
179
|
+
|
|
180
|
+
## Impacted Documentation
|
|
181
|
+
|
|
182
|
+
- [ ] SKILLS_CATALOG.md (skill added)
|
|
183
|
+
- [ ] skills/qdrant-memory/SKILL.md (new script)
|
|
184
|
+
- [ ] README.md (features updated)
|
|
185
|
+
|
|
186
|
+
## Detailed Changes
|
|
187
|
+
|
|
188
|
+
### Added Files
|
|
189
|
+
|
|
190
|
+
| File | Type | Impact |
|
|
191
|
+
| -------------------------------------- | ------ | ----------------------------- |
|
|
192
|
+
| skills/qdrant-memory/scripts/backup.py | Script | Update qdrant-memory SKILL.md |
|
|
193
|
+
|
|
194
|
+
### Modified Files
|
|
195
|
+
|
|
196
|
+
...
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Changelog Entry
|
|
200
|
+
|
|
201
|
+
```markdown
|
|
202
|
+
## [Unreleased]
|
|
203
|
+
|
|
204
|
+
### Added
|
|
205
|
+
|
|
206
|
+
- New backup script for Qdrant Memory skill (`skills/qdrant-memory/scripts/backup.py`)
|
|
207
|
+
|
|
208
|
+
### Changed
|
|
209
|
+
|
|
210
|
+
- Updated webcrawler depth limit handling
|
|
211
|
+
- Improved error messages in pdf-reader
|
|
212
|
+
|
|
213
|
+
### Removed
|
|
214
|
+
|
|
215
|
+
- Deprecated legacy export format
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## Common Workflows
|
|
221
|
+
|
|
222
|
+
### 1. After Modifying a Skill
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
# Update the skill's documentation
|
|
226
|
+
python skills/documentation/scripts/update_skill_docs.py \
|
|
227
|
+
--skill qdrant-memory \
|
|
228
|
+
--changelog
|
|
229
|
+
|
|
230
|
+
# Then update the catalog
|
|
231
|
+
python skill-creator/scripts/update_catalog.py --skills-dir skills/
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### 2. After Creating a New Skill
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
# Sync all documentation (includes catalog update)
|
|
238
|
+
python skills/documentation/scripts/sync_docs.py \
|
|
239
|
+
--skills-dir skills/ \
|
|
240
|
+
--update-catalog
|
|
241
|
+
|
|
242
|
+
# Or manually update catalog
|
|
243
|
+
python skill-creator/scripts/update_catalog.py --skills-dir skills/
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### 3. Generate Change Report for Review
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
# See what documentation needs updating
|
|
250
|
+
python skills/documentation/scripts/detect_changes.py \
|
|
251
|
+
--scope skills/ \
|
|
252
|
+
--since "1 week ago" \
|
|
253
|
+
--output .tmp/docs/weekly-changes.md
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### 4. Full Repository Audit
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
# Complete documentation synchronization
|
|
260
|
+
python skills/documentation/scripts/sync_docs.py \
|
|
261
|
+
--skills-dir skills/ \
|
|
262
|
+
--update-catalog \
|
|
263
|
+
--report .tmp/docs/sync-report.md
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Integration with Skill Lifecycle
|
|
269
|
+
|
|
270
|
+
This skill integrates with the skill-creator workflow:
|
|
271
|
+
|
|
272
|
+
```
|
|
273
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
274
|
+
│ SKILL LIFECYCLE │
|
|
275
|
+
│ ↓ │
|
|
276
|
+
│ 1. Create skill (init_skill.py) │
|
|
277
|
+
│ ↓ │
|
|
278
|
+
│ 2. Develop skill (edit SKILL.md, add scripts) │
|
|
279
|
+
│ ↓ │
|
|
280
|
+
│ 3. DOCUMENTATION SKILL: Update skill docs │
|
|
281
|
+
│ └─ update_skill_docs.py --skill <name> │
|
|
282
|
+
│ ↓ │
|
|
283
|
+
│ 4. Package skill (package_skill.py) │
|
|
284
|
+
│ ↓ │
|
|
285
|
+
│ 5. DOCUMENTATION SKILL: Sync catalog │
|
|
286
|
+
│ └─ update_catalog.py (mandatory) │
|
|
287
|
+
│ ↓ │
|
|
288
|
+
│ 6. DOCUMENTATION SKILL: Generate changelog │
|
|
289
|
+
│ └─ generate_changelog.py (optional) │
|
|
290
|
+
└─────────────────────────────────────────────────────────────┘
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
## Best Practices
|
|
296
|
+
|
|
297
|
+
### Documentation Updates
|
|
298
|
+
|
|
299
|
+
1. **Run after every code change** — Don't let docs drift from code
|
|
300
|
+
2. **Use dry-run first** — Preview changes before applying
|
|
301
|
+
3. **Include changelogs** — Track what changed and why
|
|
302
|
+
4. **Validate synchronization** — Ensure all docs are current
|
|
303
|
+
|
|
304
|
+
### Change Detection
|
|
305
|
+
|
|
306
|
+
1. **Use git-based detection** — Most accurate for tracking changes
|
|
307
|
+
2. **Scope appropriately** — Focus on relevant directories
|
|
308
|
+
3. **Review reports** — Don't blindly accept all changes
|
|
309
|
+
|
|
310
|
+
### Documentation Quality
|
|
311
|
+
|
|
312
|
+
1. **Extract from docstrings** — Keep source of truth in code
|
|
313
|
+
2. **Keep examples current** — Update usage examples with code
|
|
314
|
+
3. **Maintain cross-references** — Link related documentation
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Troubleshooting
|
|
319
|
+
|
|
320
|
+
| Issue | Cause | Solution |
|
|
321
|
+
| ----------------------- | -------------------------- | -------------------------------------- |
|
|
322
|
+
| **No changes detected** | Git not tracking files | Run `git add` before detection |
|
|
323
|
+
| **Missing docstrings** | Scripts lack documentation | Add module/function docstrings |
|
|
324
|
+
| **Catalog out of sync** | Skill added manually | Run update_catalog.py |
|
|
325
|
+
| **Stale timestamps** | Last Updated not set | Update SKILL.md manually or via script |
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
329
|
+
## Dependencies
|
|
330
|
+
|
|
331
|
+
Required Python packages:
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
# Core dependencies (usually available)
|
|
335
|
+
pip install pyyaml gitpython
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Related Skills
|
|
341
|
+
|
|
342
|
+
- **[skill-creator](../../skill-creator/SKILL_skillcreator.md)** — Create and package new skills
|
|
343
|
+
- **[webcrawler](../webcrawler/SKILL.md)** — Harvest external documentation
|
|
344
|
+
- **[pdf-reader](../pdf-reader/SKILL.md)** — Extract text from PDF docs
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
## External Resources
|
|
349
|
+
|
|
350
|
+
- [Keep a Changelog](https://keepachangelog.com/) — Changelog format standard
|
|
351
|
+
- [Google Style Python Docstrings](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings)
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Documentation Best Practices
|
|
2
|
+
|
|
3
|
+
Best practices and patterns for maintaining synchronized documentation across the codebase.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Documentation Standards
|
|
8
|
+
|
|
9
|
+
### Python Docstrings
|
|
10
|
+
|
|
11
|
+
Follow Google-style docstrings for all Python code:
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
def function_name(param1: str, param2: int) -> bool:
|
|
15
|
+
"""Brief one-line description.
|
|
16
|
+
|
|
17
|
+
Longer description if needed. Can span multiple lines
|
|
18
|
+
and include additional context.
|
|
19
|
+
|
|
20
|
+
Args:
|
|
21
|
+
param1: Description of first parameter.
|
|
22
|
+
param2: Description of second parameter.
|
|
23
|
+
|
|
24
|
+
Returns:
|
|
25
|
+
Description of return value.
|
|
26
|
+
|
|
27
|
+
Raises:
|
|
28
|
+
ValueError: When param1 is empty.
|
|
29
|
+
|
|
30
|
+
Example:
|
|
31
|
+
>>> function_name("test", 42)
|
|
32
|
+
True
|
|
33
|
+
"""
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Script Documentation
|
|
37
|
+
|
|
38
|
+
Every executable script should include:
|
|
39
|
+
|
|
40
|
+
1. **Module docstring** with:
|
|
41
|
+
- Purpose/description
|
|
42
|
+
- Usage example
|
|
43
|
+
- Arguments list
|
|
44
|
+
- Exit codes
|
|
45
|
+
|
|
46
|
+
2. **Function docstrings** for public functions
|
|
47
|
+
|
|
48
|
+
3. **Comments** for complex logic
|
|
49
|
+
|
|
50
|
+
Example:
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
#!/usr/bin/env python3
|
|
54
|
+
"""
|
|
55
|
+
Script Name - Brief Description
|
|
56
|
+
|
|
57
|
+
Longer description of what the script does and when to use it.
|
|
58
|
+
|
|
59
|
+
Usage:
|
|
60
|
+
python script_name.py --arg1 <value> [options]
|
|
61
|
+
|
|
62
|
+
Arguments:
|
|
63
|
+
--arg1 Description (required)
|
|
64
|
+
--verbose Enable verbose output (optional)
|
|
65
|
+
|
|
66
|
+
Exit Codes:
|
|
67
|
+
0 - Success
|
|
68
|
+
1 - Invalid arguments
|
|
69
|
+
2 - Runtime error
|
|
70
|
+
"""
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## SKILL.md Structure
|
|
76
|
+
|
|
77
|
+
### Required Sections
|
|
78
|
+
|
|
79
|
+
1. **Frontmatter** (YAML)
|
|
80
|
+
|
|
81
|
+
```yaml
|
|
82
|
+
---
|
|
83
|
+
name: skill-name
|
|
84
|
+
description: "Comprehensive description with trigger keywords..."
|
|
85
|
+
---
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
2. **Title and Overview** - Brief introduction
|
|
89
|
+
|
|
90
|
+
3. **Quick Start** - Immediate usage examples
|
|
91
|
+
|
|
92
|
+
4. **Core Workflow** - Step-by-step process
|
|
93
|
+
|
|
94
|
+
5. **Scripts** - All scripts with usage
|
|
95
|
+
|
|
96
|
+
6. **Configuration** - Relevant settings
|
|
97
|
+
|
|
98
|
+
7. **Common Workflows** - Real-world examples
|
|
99
|
+
|
|
100
|
+
### Optional Sections
|
|
101
|
+
|
|
102
|
+
- **Troubleshooting** - Common issues and solutions
|
|
103
|
+
- **Dependencies** - Required packages
|
|
104
|
+
- **Related Skills** - Links to related skills
|
|
105
|
+
- **External Resources** - Helpful links
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Changelog Format
|
|
110
|
+
|
|
111
|
+
Follow [Keep a Changelog](https://keepachangelog.com/) format:
|
|
112
|
+
|
|
113
|
+
```markdown
|
|
114
|
+
## [Unreleased]
|
|
115
|
+
|
|
116
|
+
### Added
|
|
117
|
+
|
|
118
|
+
- New feature description
|
|
119
|
+
|
|
120
|
+
### Changed
|
|
121
|
+
|
|
122
|
+
- Modified behavior description
|
|
123
|
+
|
|
124
|
+
### Deprecated
|
|
125
|
+
|
|
126
|
+
- Soon-to-be-removed feature
|
|
127
|
+
|
|
128
|
+
### Removed
|
|
129
|
+
|
|
130
|
+
- Removed feature description
|
|
131
|
+
|
|
132
|
+
### Fixed
|
|
133
|
+
|
|
134
|
+
- Bug fix description
|
|
135
|
+
|
|
136
|
+
### Security
|
|
137
|
+
|
|
138
|
+
- Security improvement description
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Update Triggers
|
|
144
|
+
|
|
145
|
+
Document when documentation must be updated:
|
|
146
|
+
|
|
147
|
+
| Code Change | Documentation Update |
|
|
148
|
+
| -------------------------- | --------------------------------- |
|
|
149
|
+
| New script added | SKILL.md scripts section, catalog |
|
|
150
|
+
| Script renamed/removed | SKILL.md, catalog |
|
|
151
|
+
| New skill created | SKILLS_CATALOG.md |
|
|
152
|
+
| Skill description changed | SKILLS_CATALOG.md |
|
|
153
|
+
| New reference added | SKILL.md references section |
|
|
154
|
+
| Function signature changed | Docstrings, usage examples |
|
|
155
|
+
| Breaking change | Changelog, migration notes |
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## Automation Integration
|
|
160
|
+
|
|
161
|
+
### Git Hooks (optional)
|
|
162
|
+
|
|
163
|
+
Pre-commit hook to check documentation:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
#!/bin/bash
|
|
167
|
+
# .git/hooks/pre-commit
|
|
168
|
+
|
|
169
|
+
# Check for SKILL.md in skill directories
|
|
170
|
+
for skill_dir in skills/*/; do
|
|
171
|
+
if [ ! -f "${skill_dir}SKILL.md" ]; then
|
|
172
|
+
echo "Error: Missing SKILL.md in $skill_dir"
|
|
173
|
+
exit 1
|
|
174
|
+
fi
|
|
175
|
+
done
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### CI Integration (optional)
|
|
179
|
+
|
|
180
|
+
Add to CI pipeline:
|
|
181
|
+
|
|
182
|
+
```yaml
|
|
183
|
+
documentation-check:
|
|
184
|
+
script:
|
|
185
|
+
- python skills/documentation/scripts/detect_changes.py --scope skills/ --since HEAD~1
|
|
186
|
+
- python skill-creator/scripts/update_catalog.py --skills-dir skills/
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Quality Checklist
|
|
192
|
+
|
|
193
|
+
Before committing documentation:
|
|
194
|
+
|
|
195
|
+
- [ ] All scripts have module docstrings
|
|
196
|
+
- [ ] SKILL.md has complete frontmatter
|
|
197
|
+
- [ ] Quick Start examples are tested and working
|
|
198
|
+
- [ ] Related skills are cross-referenced
|
|
199
|
+
- [ ] Changelog entry added for significant changes
|
|
200
|
+
- [ ] SKILLS_CATALOG.md is updated
|
|
201
|
+
- [ ] Timestamps are current
|