aiknowsys 0.7.2 → 0.9.0
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/README.md +183 -101
- package/SETUP_GUIDE.md +342 -0
- package/bin/cli.js +204 -0
- package/lib/banner.js +29 -0
- package/lib/commands/archive-plans.js +166 -0
- package/lib/commands/archive-sessions.js +103 -0
- package/lib/commands/audit.js +11 -5
- package/lib/commands/check.js +133 -4
- package/lib/commands/ci-check.js +147 -0
- package/lib/commands/clean.js +118 -0
- package/lib/commands/compress-essentials.js +271 -0
- package/lib/commands/config.js +427 -0
- package/lib/commands/deps-health.js +174 -0
- package/lib/commands/init/constants.js +28 -2
- package/lib/commands/init/display.js +6 -6
- package/lib/commands/init/index.js +2 -1
- package/lib/commands/init/prompts.js +60 -1
- package/lib/commands/init/templates.js +211 -28
- package/lib/commands/init.js +106 -12
- package/lib/commands/install-skills.js +9 -4
- package/lib/commands/learn.js +170 -0
- package/lib/commands/list-patterns.js +150 -0
- package/lib/commands/migrate-to-multidev.js +335 -0
- package/lib/commands/migrate.js +10 -0
- package/lib/commands/plugins.js +61 -0
- package/lib/commands/quality-check.js +180 -0
- package/lib/commands/share-pattern.js +168 -0
- package/lib/commands/sync-plans.js +188 -0
- package/lib/commands/validate-deliverables.js +606 -0
- package/lib/config.js +129 -0
- package/lib/context/pattern-detector.js +164 -0
- package/lib/context/pattern-tracker.js +117 -0
- package/lib/context/session-summarizer.js +119 -0
- package/lib/context/skill-creator.js +110 -0
- package/lib/context7/index.js +210 -0
- package/lib/parse-essentials.js +73 -0
- package/lib/plugins/loader.js +254 -0
- package/lib/quality-checkers/common.js +17 -0
- package/lib/quality-checkers/essentials-bloat.js +47 -0
- package/lib/quality-checkers/link-validator.js +162 -0
- package/lib/quality-checkers/pattern-scanner.js +121 -0
- package/lib/quality-checkers/template-validator.js +93 -0
- package/lib/utils/git-username.js +39 -0
- package/lib/utils.js +5 -1
- package/package.json +7 -3
- package/scripts/README.md +48 -0
- package/scripts/migrate-learned-patterns.js +370 -0
- package/templates/.aiknowsys/plans/README.template.md +21 -0
- package/templates/.aiknowsys/plans/active-username.template.md +19 -0
- package/templates/.aiknowsys/reviews/README.template.md +21 -0
- package/templates/AGENTS.template.md +106 -14
- package/templates/CODEBASE_ESSENTIALS.minimal.md +1 -0
- package/templates/CODEBASE_ESSENTIALS.minimal.template.md +14 -0
- package/templates/CODEBASE_ESSENTIALS.template.md +199 -1
- package/templates/agents/USAGE.txt +37 -0
- package/templates/agents/architect.agent.template.md +18 -13
- package/templates/agents/developer.agent.template.md +3 -4
- package/templates/agents/planner.agent.template.md +2 -2
- package/templates/aiknowsys-structure/learned/essentials-compression.md +379 -0
- package/templates/aiknowsys-structure/learned/plan-management.md +111 -0
- package/templates/aiknowsys-structure/learned/vscode-file-operations.md +235 -0
- package/templates/aiknowsys-structure/personal/README.md +144 -0
- package/templates/git-hooks/README.md +29 -11
- package/templates/git-hooks/pre-commit +25 -3
- package/templates/git-hooks/pre-commit-enhanced +106 -0
- package/templates/hooks/collaboration-check.mjs +177 -0
- package/templates/hooks/config.json +124 -0
- package/templates/hooks/doc-sync.cjs +145 -0
- package/templates/hooks/hooks.json +99 -0
- package/templates/hooks/learned-reminder.cjs +145 -0
- package/templates/hooks/migration-check.cjs +121 -0
- package/templates/hooks/performance-monitor.cjs +157 -0
- package/templates/hooks/plan-reminder.cjs +113 -0
- package/templates/hooks/quality-health.cjs +141 -0
- package/templates/hooks/session-end.js +78 -0
- package/templates/hooks/session-start.js +75 -0
- package/templates/hooks/skill-detector.cjs +358 -0
- package/templates/hooks/skill-prereq-check.cjs +208 -0
- package/templates/hooks/sync-plans.cjs +43 -0
- package/templates/hooks/tdd-reminder.cjs +110 -0
- package/templates/hooks/validation-reminder.cjs +186 -0
- package/templates/hooks/workspace-health.cjs +124 -0
- package/templates/scripts/install-git-hooks.cjs +168 -0
- package/templates/skills/ai-friendly-documentation/SKILL.md +625 -0
- package/templates/skills/context7-usage/SKILL.md +336 -0
- package/templates/skills/dependency-management/SKILL.md +482 -0
- package/templates/skills/feature-implementation/SKILL.md +442 -0
- package/templates/skills/pattern-sharing/SKILL.md +838 -0
- package/templates/skills/refactoring-workflow/SKILL.md +673 -0
- package/templates/skills/skill-validation/SKILL.md +481 -0
- package/templates/stacks/nextjs/CODEBASE_ESSENTIALS.md +51 -4
- package/scripts/migrate-existing.sh +0 -222
- package/scripts/scan-codebase.sh +0 -379
- package/scripts/setup.sh +0 -273
- package/templates/skills/code-refactoring/SKILL.md +0 -662
- package/templates/skills/dependency-updates/SKILL.md +0 -561
- package/templates/skills/documentation-management/SKILL.md +0 -744
package/README.md
CHANGED
|
@@ -17,6 +17,11 @@ A structured workflow system consisting of:
|
|
|
17
17
|
3. **Skills System** - Domain-specific how-to guides for common tasks
|
|
18
18
|
4. **Changelog** - Session-by-session validation and learning history
|
|
19
19
|
5. **Validation Matrix** - Mandatory test running before completion
|
|
20
|
+
6. **Multi-Developer Collaboration** - Per-developer plan tracking and reviews prevent merge conflicts (Phase 2)
|
|
21
|
+
7. **Multi-Plan Support** - Work on multiple initiatives simultaneously without losing context
|
|
22
|
+
8. **OpenSpec + Plan Integration** - Combine proposal-driven design with task tracking ([see advanced workflows](docs/advanced-workflows.md))
|
|
23
|
+
9. **ESSENTIALS Compression** - Automated detection and extraction of bloat to keep ESSENTIALS lean (600-800 lines)
|
|
24
|
+
10. **VSCode Hooks** - 17 intelligent hooks for GitHub Copilot: session tracking, TDD enforcement, skill detection, health monitoring, collaboration alerts, performance tracking, migration assistance, and git collaboration reminders (optional)
|
|
20
25
|
|
|
21
26
|
**Result:** AI assistants that understand your codebase, follow your patterns, and catch issues before production.
|
|
22
27
|
|
|
@@ -44,6 +49,66 @@ From production use in gnwebsite:
|
|
|
44
49
|
| Patterns exist in tribal knowledge | Patterns documented and enforced |
|
|
45
50
|
| Each session restarts context | Historical context preserved |
|
|
46
51
|
|
|
52
|
+
### Intelligent Automation with VSCode Hooks
|
|
53
|
+
|
|
54
|
+
**17 lifecycle hooks** that run automatically during GitHub Copilot sessions:
|
|
55
|
+
|
|
56
|
+
✅ **Never forget tests** - TDD reminder before editing code
|
|
57
|
+
✅ **Never skip validation** - Validation reminder before claiming "done"
|
|
58
|
+
✅ **Auto-detect skills** - Suggests relevant guides based on your prompt
|
|
59
|
+
✅ **Health monitoring** - Alerts on disk space, lint errors, type issues
|
|
60
|
+
✅ **Avoid conflicts** - Detects concurrent work on same files
|
|
61
|
+
✅ **Track performance** - Warns on test regressions (>20% slower)
|
|
62
|
+
✅ **Stay updated** - Migration alerts for version mismatches
|
|
63
|
+
✅ **Fresh docs** - Staleness warnings for outdated documentation
|
|
64
|
+
✅ **Team collaboration** - Remind to share patterns, show teammates' active plans (git hooks)
|
|
65
|
+
|
|
66
|
+
**[Learn more about hooks →](docs/vscode-hooks-guide.md)**
|
|
67
|
+
|
|
68
|
+
### vs GitHub Copilot Memory
|
|
69
|
+
|
|
70
|
+
AIKnowSys complements (or replaces) GitHub's Copilot Memory with key advantages:
|
|
71
|
+
|
|
72
|
+
🔒 **100% Local** - Never leaves your machine (privacy-first)
|
|
73
|
+
♾️ **Permanent** - Knowledge lasts forever (not 28-day expiration)
|
|
74
|
+
🌍 **Any AI Tool** - Works with Claude, ChatGPT, Cursor, etc. (not locked to Copilot)
|
|
75
|
+
📖 **Human-Readable** - Markdown files you can read and edit (not opaque AI format)
|
|
76
|
+
✍️ **You Control** - Decide what's documented (not AI-decided patterns)
|
|
77
|
+
🤝 **Team Shareable** - Commit to git, everyone benefits (not subscription-locked)
|
|
78
|
+
|
|
79
|
+
**[Read full comparison →](docs/copilot-memory-comparison.md)**
|
|
80
|
+
|
|
81
|
+
### Plugin Ecosystem
|
|
82
|
+
|
|
83
|
+
Extend aiknowsys with optional plugins for additional capabilities:
|
|
84
|
+
|
|
85
|
+
**🔌 Available Plugins:**
|
|
86
|
+
|
|
87
|
+
- **[aiknowsys-plugin-context7](https://www.npmjs.com/package/aiknowsys-plugin-context7)** - Context7 MCP integration
|
|
88
|
+
- Validate skills/stacks against current library documentation
|
|
89
|
+
- Query up-to-date framework docs (Next.js, Vue, React, etc.)
|
|
90
|
+
- Detect framework updates and breaking changes
|
|
91
|
+
- Generate validation reports for monthly reviews
|
|
92
|
+
- CI/CD integration for automated quality checks
|
|
93
|
+
|
|
94
|
+
**Installation:**
|
|
95
|
+
```bash
|
|
96
|
+
npm install aiknowsys-plugin-context7
|
|
97
|
+
|
|
98
|
+
# Plugin discovered automatically
|
|
99
|
+
npx aiknowsys --help
|
|
100
|
+
# Shows: validate-deliverables, query-docs commands
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
**Plugin Architecture:**
|
|
104
|
+
- 🔌 Zero impact on core (optional dependencies)
|
|
105
|
+
- 🎯 Auto-discovered via package.json
|
|
106
|
+
- 📦 Separate npm packages
|
|
107
|
+
- 🧪 Independent testing
|
|
108
|
+
- 📖 Full documentation
|
|
109
|
+
|
|
110
|
+
**[See plugin development guide →](docs/plugin-architecture.md)**
|
|
111
|
+
|
|
47
112
|
---
|
|
48
113
|
|
|
49
114
|
## Quick Start
|
|
@@ -105,8 +170,14 @@ Each stack template includes:
|
|
|
105
170
|
| `npx aiknowsys check` | Validate knowledge system setup and configuration | N/A (validation) |
|
|
106
171
|
| `npx aiknowsys sync` | Sync AGENTS.md validation reference with ESSENTIALS.md | N/A (maintenance) |
|
|
107
172
|
| `npx aiknowsys audit` | Find common issues and pattern violations | N/A (analysis) |
|
|
173
|
+
| `npx aiknowsys compress-essentials --analyze` | Preview ESSENTIALS compression opportunities | N/A (analysis) |
|
|
174
|
+
| `npx aiknowsys compress-essentials --auto` | Auto-extract verbose sections to docs/ | N/A (maintenance) |
|
|
175
|
+
| `npx aiknowsys compress-essentials --interactive` | Interactive compression workflow | N/A (maintenance) |
|
|
108
176
|
| `npx aiknowsys install-agents` | Install Planner + Developer + Architect agents | N/A (standalone) |
|
|
109
177
|
| `npx aiknowsys install-skills` | Install universal skills | N/A (standalone) |
|
|
178
|
+
| `npx aiknowsys enable <feature>` | Enable and install a specific feature | N/A (feature management) |
|
|
179
|
+
| `npx aiknowsys disable <feature>` | Disable a feature (optionally remove files) | N/A (feature management) |
|
|
180
|
+
| `npx aiknowsys uninstall` | Remove AIKnowSys completely from project | N/A (cleanup) |
|
|
110
181
|
|
|
111
182
|
**🤔 `init` vs `migrate` - Which Should I Use?**
|
|
112
183
|
|
|
@@ -241,6 +312,77 @@ npx audit
|
|
|
241
312
|
- `sync` - After upgrading from old templates with duplicated validation matrix
|
|
242
313
|
- `audit` - Periodic health checks, before releases, or when reviewing code quality
|
|
243
314
|
|
|
315
|
+
### 🗜️ Keeping ESSENTIALS Lean
|
|
316
|
+
|
|
317
|
+
CODEBASE_ESSENTIALS.md should stay focused (600-800 lines recommended). Use compression commands to extract verbose content:
|
|
318
|
+
|
|
319
|
+
```bash
|
|
320
|
+
# Check if ESSENTIALS is bloated
|
|
321
|
+
npx aiknowsys check
|
|
322
|
+
# ⚠️ ESSENTIALS: 1400 lines (recommended: <800)
|
|
323
|
+
|
|
324
|
+
# Preview what can be extracted
|
|
325
|
+
npx aiknowsys compress-essentials --analyze
|
|
326
|
+
# Shows verbose sections and where to extract them
|
|
327
|
+
|
|
328
|
+
# Auto-extract verbose sections to docs/patterns/
|
|
329
|
+
npx aiknowsys compress-essentials --auto
|
|
330
|
+
# Moves code examples, updates references, preserves structure
|
|
331
|
+
|
|
332
|
+
# Interactive mode for manual control
|
|
333
|
+
npx aiknowsys compress-essentials --interactive
|
|
334
|
+
# Step-by-step compression with previews
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
### 🔧 Feature Management
|
|
338
|
+
|
|
339
|
+
Manage features after initial setup:
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
# Enable a feature that was skipped during init
|
|
343
|
+
npx aiknowsys enable skills
|
|
344
|
+
npx aiknowsys enable vscodeHooks
|
|
345
|
+
npx aiknowsys enable tddEnforcement
|
|
346
|
+
|
|
347
|
+
# Disable a feature (keeps files by default)
|
|
348
|
+
npx aiknowsys disable openspec
|
|
349
|
+
|
|
350
|
+
# Disable and remove files
|
|
351
|
+
npx aiknowsys disable skills --remove-files
|
|
352
|
+
|
|
353
|
+
# Remove AIKnowSys completely
|
|
354
|
+
npx aiknowsys uninstall
|
|
355
|
+
# ⚠️ Removes all AIKnowSys files with safety prompts
|
|
356
|
+
# Option to keep user data (.aiknowsys/learned, sessions)
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
**Available features:**
|
|
360
|
+
- `agents` - Developer + Architect + Planner custom agents
|
|
361
|
+
- `skills` - Universal skills library (.github/skills/)
|
|
362
|
+
- `vscodeHooks` - VS Code session hooks for auto-context loading
|
|
363
|
+
- `sessionPersistence` - Session tracking (.aiknowsys/sessions/)
|
|
364
|
+
- `tddEnforcement` - TDD git hooks and GitHub Actions
|
|
365
|
+
- `openspec` - OpenSpec integration for change proposals
|
|
366
|
+
- `context7` - Context7 MCP integration (reserved for future)
|
|
367
|
+
|
|
368
|
+
**When to use:**
|
|
369
|
+
- Skip optional features during init, add them later
|
|
370
|
+
- Experiment with features without reinstalling
|
|
371
|
+
- Clean up unused features to reduce repository size
|
|
372
|
+
- Complete removal when migrating away from AIKnowSys
|
|
373
|
+
|
|
374
|
+
**Prevention (built into templates):**
|
|
375
|
+
- Template hints guide AI toward concise examples (<15 lines)
|
|
376
|
+
- Post-init check warns if ESSENTIALS >800 lines after setup
|
|
377
|
+
- Monthly `check` command catches growth early
|
|
378
|
+
|
|
379
|
+
**Why this matters:**
|
|
380
|
+
- Faster AI context loading (fewer tokens)
|
|
381
|
+
- Easier navigation and maintenance
|
|
382
|
+
- Better signal-to-noise ratio
|
|
383
|
+
|
|
384
|
+
**See:** [docs/essentials-compression-guide.md](docs/essentials-compression-guide.md) for detailed guide
|
|
385
|
+
|
|
244
386
|
---
|
|
245
387
|
|
|
246
388
|
## 🔍 Enhanced Auto-Detection
|
|
@@ -362,8 +504,9 @@ If NO to any: Document violation in CODEBASE_CHANGELOG.md
|
|
|
362
504
|
Pre-commit hook checks for test changes:
|
|
363
505
|
|
|
364
506
|
```bash
|
|
365
|
-
# Install git hooks
|
|
366
|
-
|
|
507
|
+
# Install git hooks (cross-platform)
|
|
508
|
+
node scripts/install-git-hooks.cjs
|
|
509
|
+
# Or: npm run install-hooks
|
|
367
510
|
|
|
368
511
|
# Now when you commit lib/ without test/ changes:
|
|
369
512
|
⚠️ WARNING: Staging lib/ changes without test/ changes
|
|
@@ -457,51 +600,6 @@ Stay tuned for updates!
|
|
|
457
600
|
|
|
458
601
|
---
|
|
459
602
|
|
|
460
|
-
### Alternative: Manual Setup
|
|
461
|
-
|
|
462
|
-
<details>
|
|
463
|
-
<summary>Click to expand manual setup instructions</summary>
|
|
464
|
-
|
|
465
|
-
#### For New Projects
|
|
466
|
-
|
|
467
|
-
```bash
|
|
468
|
-
# Clone the template
|
|
469
|
-
git clone https://github.com/YOUR_ORG/.git
|
|
470
|
-
cd
|
|
471
|
-
|
|
472
|
-
# Run interactive setup
|
|
473
|
-
./scripts/setup.sh
|
|
474
|
-
|
|
475
|
-
# Follow prompts to customize for your tech stack
|
|
476
|
-
# Files will be generated with your configuration
|
|
477
|
-
```
|
|
478
|
-
|
|
479
|
-
#### For Existing Projects
|
|
480
|
-
|
|
481
|
-
```bash
|
|
482
|
-
# Clone into your project
|
|
483
|
-
git clone https://github.com/YOUR_ORG/.git temp-template
|
|
484
|
-
cp -r temp-template/scripts ./
|
|
485
|
-
cp -r temp-template/templates ./
|
|
486
|
-
|
|
487
|
-
# Run migration workflow
|
|
488
|
-
./scripts/migrate-existing.sh
|
|
489
|
-
|
|
490
|
-
# Scanner will:
|
|
491
|
-
# 1. Detect your tech stack automatically
|
|
492
|
-
# 2. Generate draft CODEBASE_ESSENTIALS.md (70% complete)
|
|
493
|
-
# 3. Install custom agents
|
|
494
|
-
# 4. Set up universal skills
|
|
495
|
-
# 5. Initialize changelog
|
|
496
|
-
|
|
497
|
-
# Complete TODO sections in CODEBASE_ESSENTIALS.md
|
|
498
|
-
# Start using: @Developer <your request>
|
|
499
|
-
```
|
|
500
|
-
|
|
501
|
-
</details>
|
|
502
|
-
|
|
503
|
-
---
|
|
504
|
-
|
|
505
603
|
## Core Components
|
|
506
604
|
|
|
507
605
|
### 1. AI Knowledge System (.aiknowsys/)
|
|
@@ -513,13 +611,22 @@ When you run `init`, AIKnowSys creates a `.aiknowsys/` directory that enables AI
|
|
|
513
611
|
**Directory Structure:**
|
|
514
612
|
```
|
|
515
613
|
.aiknowsys/
|
|
614
|
+
├── CURRENT_PLAN.md # ✅ Committed - Team index (auto-generated)
|
|
615
|
+
├── PLAN_*.md # ✅ Committed - Implementation plans
|
|
616
|
+
├── plans/ # ✅ Committed - Per-developer plan pointers
|
|
617
|
+
│ ├── README.md # ✅ Committed - Workflow explanation
|
|
618
|
+
│ └── active-<username>.md # ✅ Committed - Your active plan
|
|
619
|
+
├── reviews/ # 🚫 Gitignored - Per-developer reviews
|
|
620
|
+
│ ├── README.md # ✅ Committed - Workflow explanation
|
|
621
|
+
│ └── PENDING_<username>.md # 🚫 Temporary architect reviews
|
|
516
622
|
├── sessions/ # 🚫 Gitignored - Temporary session working memory
|
|
517
623
|
│ ├── README.md # ✅ Committed - Explains purpose
|
|
518
624
|
│ └── YYYY-MM-DD-session.md # 🚫 Daily session notes (not committed)
|
|
519
625
|
├── learned/ # ✅ Committed - Permanent project-specific patterns
|
|
520
626
|
│ ├── README.md # ✅ Committed - Explains pattern format
|
|
521
627
|
│ └── *.md # ✅ Committed - Discovered patterns
|
|
522
|
-
└──
|
|
628
|
+
└── personal/ # 🚫 Gitignored - Personal patterns
|
|
629
|
+
└── <username>/ # 🚫 Your personal patterns
|
|
523
630
|
```
|
|
524
631
|
|
|
525
632
|
#### Session Files (Temporary)
|
|
@@ -561,14 +668,15 @@ When you run `init`, AIKnowSys creates a `.aiknowsys/` directory that enables AI
|
|
|
561
668
|
|
|
562
669
|
**What they are:**
|
|
563
670
|
- Detailed code reviews created by Architect agent
|
|
671
|
+
- Scoped per developer (no conflicts in team environments)
|
|
564
672
|
- Deleted after Developer addresses issues
|
|
565
673
|
- Temporary handoff mechanism between agents
|
|
566
674
|
|
|
567
675
|
**Example workflow:**
|
|
568
676
|
1. Developer implements feature
|
|
569
|
-
2. Architect writes review to `
|
|
677
|
+
2. Architect writes review to `reviews/PENDING_<username>.md`
|
|
570
678
|
3. Developer reads review and fixes issues
|
|
571
|
-
4. Developer deletes `
|
|
679
|
+
4. Developer deletes `reviews/PENDING_<username>.md`
|
|
572
680
|
|
|
573
681
|
#### Gitignore Configuration
|
|
574
682
|
|
|
@@ -578,8 +686,11 @@ The init command automatically adds:
|
|
|
578
686
|
# Session-specific AI memory (temporary, not committed)
|
|
579
687
|
.aiknowsys/sessions/*.md
|
|
580
688
|
!.aiknowsys/sessions/README.md
|
|
581
|
-
.aiknowsys/
|
|
689
|
+
.aiknowsys/reviews/
|
|
690
|
+
!.aiknowsys/reviews/README.md
|
|
691
|
+
.aiknowsys/personal/
|
|
582
692
|
# Note: .aiknowsys/learned/ IS committed (project-specific patterns)
|
|
693
|
+
# Note: .aiknowsys/plans/ IS committed (team plan tracking)
|
|
583
694
|
```
|
|
584
695
|
|
|
585
696
|
**Validation:** Run `npx aiknowsys audit` to check if gitignore is configured correctly.
|
|
@@ -610,19 +721,20 @@ The init command automatically adds:
|
|
|
610
721
|
|
|
611
722
|
**Workflow:**
|
|
612
723
|
```
|
|
613
|
-
User → @Planner → Creates implementation plan → Writes to
|
|
614
|
-
@Developer →
|
|
615
|
-
@SeniorArchitect → Reviews against ESSENTIALS → Writes to
|
|
724
|
+
User → @Planner → Creates implementation plan → Writes to PLAN_*.md →
|
|
725
|
+
@Developer → Updates plans/active-<username>.md → Implements feature → Auto-handoff →
|
|
726
|
+
@SeniorArchitect → Reviews against ESSENTIALS → Writes to reviews/PENDING_<username>.md → ✅ Approve or 🔄 Refactor
|
|
616
727
|
```
|
|
617
728
|
|
|
618
729
|
**What Planner does:**
|
|
619
730
|
- Breaks down complex features into actionable steps
|
|
620
731
|
- Identifies architectural concerns and dependencies
|
|
621
|
-
- Documents implementation plan in
|
|
732
|
+
- Documents implementation plan in `PLAN_*.md`
|
|
733
|
+
- Updates developer's plan pointer in `plans/active-<username>.md`
|
|
622
734
|
- Ensures proper sequencing and risk mitigation
|
|
623
735
|
|
|
624
736
|
**What Developer does:**
|
|
625
|
-
- Reads implementation plan from
|
|
737
|
+
- Reads implementation plan from `plans/active-<username>.md` pointer
|
|
626
738
|
- Implements features following project patterns
|
|
627
739
|
- Writes tests (TDD if enabled, coverage testing otherwise)
|
|
628
740
|
- Validates all changes before handoff
|
|
@@ -890,58 +1002,23 @@ Confirm docs updated
|
|
|
890
1002
|
|
|
891
1003
|
---
|
|
892
1004
|
|
|
893
|
-
## Installation
|
|
894
|
-
|
|
895
|
-
### Option 1: Interactive Setup (New Projects)
|
|
896
|
-
|
|
897
|
-
```bash
|
|
898
|
-
./scripts/setup.sh
|
|
899
|
-
```
|
|
900
|
-
|
|
901
|
-
**Prompts for:**
|
|
902
|
-
- Primary language (TypeScript/Python/Rust/Go)
|
|
903
|
-
- Framework (Vue/React/Django/FastAPI/etc)
|
|
904
|
-
- Testing tools (Vitest/Jest/pytest/cargo test)
|
|
905
|
-
- Package manager (npm/pip/cargo/go mod)
|
|
1005
|
+
## Deprecated Installation Methods
|
|
906
1006
|
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
- AGENTS.md with workflow instructions
|
|
910
|
-
- Custom agents configured for your stack
|
|
911
|
-
- Universal skills installed
|
|
1007
|
+
<details>
|
|
1008
|
+
<summary>⚠️ Old bash scripts (removed in v0.9.0) - Click for migration path</summary>
|
|
912
1009
|
|
|
913
|
-
|
|
1010
|
+
The original bash scripts (`setup.sh`, `migrate-existing.sh`, `scan-codebase.sh`) have been removed. They are fully replaced by CLI commands:
|
|
914
1011
|
|
|
915
1012
|
```bash
|
|
916
|
-
|
|
1013
|
+
# Old (removed) → New (use this)
|
|
1014
|
+
./scripts/setup.sh → npx aiknowsys init
|
|
1015
|
+
./scripts/migrate-existing.sh → npx aiknowsys migrate
|
|
1016
|
+
./scripts/scan-codebase.sh → npx aiknowsys scan
|
|
917
1017
|
```
|
|
918
1018
|
|
|
919
|
-
|
|
920
|
-
- Tech stack from package files
|
|
921
|
-
- Test commands from package.json/Makefile/CI
|
|
922
|
-
- Project structure
|
|
923
|
-
- Key dependencies
|
|
924
|
-
|
|
925
|
-
**Generates:**
|
|
926
|
-
- Draft CODEBASE_ESSENTIALS.md (70% complete)
|
|
927
|
-
- TODO sections for manual patterns
|
|
928
|
-
- Validation matrix
|
|
929
|
-
- Changelog initialized
|
|
930
|
-
|
|
931
|
-
**Time saved:** ~3-4 hours of manual documentation
|
|
932
|
-
|
|
933
|
-
### Option 3: Manual Setup
|
|
1019
|
+
See [scripts/README.md](scripts/README.md) for full details.
|
|
934
1020
|
|
|
935
|
-
|
|
936
|
-
# Copy templates
|
|
937
|
-
cp templates/CODEBASE_ESSENTIALS.template.md CODEBASE_ESSENTIALS.md
|
|
938
|
-
cp templates/AGENTS.template.md AGENTS.md
|
|
939
|
-
cp -r templates/agents/ .github/agents/
|
|
940
|
-
|
|
941
|
-
# Customize for your project
|
|
942
|
-
# Fill in {{PLACEHOLDERS}}
|
|
943
|
-
# Add your patterns and conventions
|
|
944
|
-
```
|
|
1021
|
+
</details>
|
|
945
1022
|
|
|
946
1023
|
---
|
|
947
1024
|
|
|
@@ -992,6 +1069,11 @@ Edit `.github/agents/architect.agent.md`:
|
|
|
992
1069
|
- Errors must use structured logging
|
|
993
1070
|
```
|
|
994
1071
|
|
|
1072
|
+
**Advanced:** Customize agent `model` and `tools` frontmatter fields:
|
|
1073
|
+
- See `.github/agents/USAGE.txt` section "Customizing `model` and `tools`"
|
|
1074
|
+
- Or [docs/customization-guide.md](docs/customization-guide.md) for full field reference
|
|
1075
|
+
- Control which AI model each agent uses and what capabilities they have
|
|
1076
|
+
|
|
995
1077
|
**3. Create Custom Skills**
|
|
996
1078
|
|
|
997
1079
|
Use skill-creator skill:
|