@softspark/ai-toolkit 1.5.1 → 1.6.1

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 CHANGED
@@ -7,6 +7,35 @@ Versioning follows [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  ---
9
9
 
10
+ ## v1.6.1 — IDE Rule Format Compliance Audit (2026-04-10)
11
+
12
+ ### Fixed
13
+ - **Cline rules path** — changed `.cline/rules/` to `.clinerules/` directory per official Cline 3.7+ docs. Old path was silently ignored by Cline
14
+ - **Augment frontmatter type** — changed `auto_attached` to `agent_requested` per official Augment docs
15
+ - **Aider config** — added `CONVENTIONS.md` to `read:` list in `.aider.conf.yml` so Aider auto-loads the conventions we generate
16
+
17
+ ### Changed
18
+ - **`add-rule` help text** — now lists all supported editors (was missing Augment, Roo, Aider, Antigravity)
19
+ - Legacy `.clinerules` single-file is auto-migrated to `.clinerules/` directory on next install
20
+
21
+ ---
22
+
23
+ ## v1.6.0 — IDE Language Rules Propagation, Planning Docs, Cloud Security Pack (2026-04-10)
24
+
25
+ ### Added
26
+ - **Language rules propagation to all IDE editors** — shared `dir_rules_shared.py` module now injects language-specific and registered rules into Cursor, Windsurf, Cline, Roo Code, Augment, Antigravity, and Copilot generators. All platforms receive identical rule content from a single source of truth.
27
+ - **Local Dashboard Plan** — planning doc (`kb/planning/local-dashboard-plan.md`) for ai-toolkit UI with visual skill/agent management features
28
+ - **Enterprise Config Inheritance Plan** — planning doc (`kb/planning/enterprise-config-inheritance-plan.md`) for hierarchical config system
29
+ - **Offline SLM Profile Plan** — planning doc (`kb/planning/offline-slm-profile-plan.md`) for offline small language model profiles
30
+ - **Cloud Security Pack Plan** — planning doc (`kb/planning/cloud-security-pack-plan.md`) for multi-cloud audit (GCP/AWS/Azure)
31
+ - **193 new generator tests** — language rules propagation, content verification, cross-platform parity
32
+
33
+ ### Changed
34
+ - **Documentation standards** — added `planning` as a valid KB category in `validate.py`, `documenter` agent, `/docs` and `/documentation-standards` skills
35
+ - **Maintenance SOP** — updated to reflect language rules propagation workflow
36
+
37
+ ---
38
+
10
39
  ## v1.5.1 — Security Hardening: Script Injection, XSS, Private Data Leak (2026-04-10)
11
40
 
12
41
  ### Fixed
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
7
7
  [![Skills](https://img.shields.io/badge/skills-92-brightgreen)](app/skills/)
8
8
  [![Agents](https://img.shields.io/badge/agents-44-blue)](app/agents/)
9
- [![Tests](https://img.shields.io/badge/tests-439%20passing-success)](tests/)
9
+ [![Tests](https://img.shields.io/badge/tests-451%20passing-success)](tests/)
10
10
 
11
11
  ---
12
12
 
@@ -121,14 +121,14 @@ Replaces all symlinks with real files, inlines rules into CLAUDE.md, copies cons
121
121
  | Windsurf | `~/.codeium/.../global_rules.md` + `.windsurf/rules/*.md` | `ai-toolkit install` / `--local` | global + project |
122
122
  | Gemini CLI | `~/.gemini/GEMINI.md` | `ai-toolkit install` | global |
123
123
  | GitHub Copilot | `.github/copilot-instructions.md` | `ai-toolkit install --local` | project |
124
- | Cline | `.clinerules` + `.cline/rules/*.md` | `ai-toolkit install --local` | project |
124
+ | Cline | `.clinerules/*.md` | `ai-toolkit install --local` | project |
125
125
  | Roo Code | `.roomodes` + `.roo/rules/*.md` | `ai-toolkit install --local` | project |
126
126
  | Aider | `.aider.conf.yml` + `CONVENTIONS.md` | `ai-toolkit install --local` | project |
127
127
  | Augment | `.augment/rules/ai-toolkit-*.md` | `ai-toolkit install --local` | project |
128
128
  | Google Antigravity | `.agent/rules/*.md` + `.agent/workflows/*.md` | `ai-toolkit install --local` | project |
129
129
  | Codex / OpenCode | `AGENTS.md` | `ai-toolkit agents-md` | project |
130
130
 
131
- > **Note:** Claude Code is always installed (primary platform with full feature support). Other editors are installed on demand with `--editors <list>` or auto-detected from existing project files. All platforms receive the same agent/skill catalog, guidelines, and rules. For editors lacking native bash lifecycle hooks, `--local` installs a Git hooks fallback (`.git/hooks/pre-commit`) to enforce quality gates pre-commit.
131
+ > **Note:** Claude Code is always installed (primary platform with full feature support). Other editors are installed on demand with `--editors <list>` or auto-detected from existing project files. All platforms receive the same agent/skill catalog, guidelines, rules, language-specific rules, and registered custom rules. For editors lacking native bash lifecycle hooks, `--local` installs a Git hooks fallback (`.git/hooks/pre-commit`) to enforce quality gates pre-commit.
132
132
 
133
133
  ---
134
134
 
@@ -191,7 +191,7 @@ ai-toolkit/
191
191
  │ ├── output-styles/ # System prompt output style overrides
192
192
  │ ├── constitution.md # 5 immutable safety articles
193
193
  │ └── ARCHITECTURE.md # Full system design
194
- ├── kb/ # Reference docs, architecture notes, procedures
194
+ ├── kb/ # Reference docs, architecture notes, procedures, plans
195
195
  ├── scripts/ # Validation, install, evaluation scripts
196
196
  ├── tests/ # Bats test suite
197
197
  └── CHANGELOG.md
@@ -529,6 +529,19 @@ ai-toolkit install --local --lang go,python # multiple languages
529
529
 
530
530
  `--local` automatically detects languages using two-phase detection: config markers (package.json, go.mod, Cargo.toml, etc.) plus source file extension scanning (.py, .ts, .go, etc.). `--lang` accepts aliases (`go`, `c++`, `cs`). Rules are injected into `CLAUDE.md` and auto-updated on `ai-toolkit update --local`.
531
531
 
532
+ When `--editors` is used alongside detected or explicit languages, language rules are propagated to all configured editors — not just Claude. Each editor receives the full rule content in its native format:
533
+
534
+ | Editor | Language rule file | Activation |
535
+ |--------|-------------------|------------|
536
+ | Cursor | `.cursor/rules/ai-toolkit-lang-<lang>.mdc` | `globs` per file type (e.g. `**/*.py`) |
537
+ | Windsurf | `.windsurf/rules/ai-toolkit-lang-<lang>.md` | always loaded |
538
+ | Cline | `.clinerules/ai-toolkit-lang-<lang>.md` | always loaded |
539
+ | Roo Code | `.roo/rules/ai-toolkit-lang-<lang>.md` | always loaded |
540
+ | Augment | `.augment/rules/ai-toolkit-lang-<lang>.md` | `agent_requested` with globs |
541
+ | Antigravity | `.agent/rules/ai-toolkit-lang-<lang>.md` | always loaded |
542
+
543
+ Registered rules (`ai-toolkit add-rule`) are also propagated to directory-based editor configs as `ai-toolkit-custom-<name>` files.
544
+
532
545
  ---
533
546
 
534
547
  ## Extension API
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ai-toolkit",
3
3
  "description": "Professional-grade Claude Code toolkit with persona presets, skill security auditor, expanded lifecycle hooks, experimental opt-in plugin packs, benchmark harvesting, and multi-tool support.",
4
- "version": "1.5.1",
4
+ "version": "1.6.1",
5
5
  "author": {
6
6
  "name": "SoftSpark",
7
7
  "url": "https://github.com/softspark"
@@ -305,7 +305,9 @@ Lead Session (You)
305
305
  `app/plugins/mcp-templates/` ships 25 ready-to-use MCP server config templates (filesystems, databases, GitHub, Slack, etc.). Opt-in via `ai-toolkit install --modules mcp-templates` or activated automatically with `--profile strict|full`.
306
306
 
307
307
  ### Language Rules (70 files, 13 languages)
308
- `app/rules/` contains per-language coding rules injected into `CLAUDE.md`. Supported languages: TypeScript, Python, Go, Rust, Java, Kotlin, Swift, Dart, C#, PHP, C++, Ruby, and common (shared). Auto-detected from project files via `--auto-detect` or selected with `--modules rules-<lang>`.
308
+ `app/rules/` contains per-language coding rules. Supported languages: TypeScript, Python, Go, Rust, Java, Kotlin, Swift, Dart, C#, PHP, C++, Ruby, and common (shared). Auto-detected from project files via `--auto-detect` or selected with `--modules rules-<lang>`.
309
+
310
+ Language rules are propagated to **all configured editors** — not just Claude. `dir_rules_shared.build_language_rules()` reads `app/rules/<lang>/*.md`, strips frontmatter, and returns combined content per language. Each directory-based generator (Cursor, Windsurf, Cline, Roo, Augment, Antigravity) emits `ai-toolkit-lang-<lang>` files in its native format. Registered custom rules (`~/.ai-toolkit/rules/`) are similarly propagated as `ai-toolkit-custom-<name>` files via `build_registered_rules()`.
309
311
 
310
312
  ### Extension API (`inject-hook`)
311
313
  The `inject_section_cli.py` script provides a stable marker-based injection API. Any tool can add sections to `CLAUDE.md`, `constitution.md`, or `ARCHITECTURE.md` without overwriting user content, using `<!-- TOOLKIT:START:<id> -->` / `<!-- TOOLKIT:END:<id> -->` markers.
@@ -202,12 +202,12 @@ command
202
202
 
203
203
  ## Frontmatter Standards (MANDATORY)
204
204
 
205
- Follow the `documentation-standards` knowledge skill for full spec. **7 required fields:** title, category, service, tags, created, last_updated, description. **5 valid categories:** reference, howto, procedures, troubleshooting, best-practices. `validate.sh` enforces compliance — **docs without valid frontmatter block CI.**
205
+ Follow the `documentation-standards` knowledge skill for full spec. **7 required fields:** title, category, service, tags, created, last_updated, description. **6 valid categories:** reference, howto, procedures, troubleshooting, best-practices, planning. `validate.sh` enforces compliance — **docs without valid frontmatter block CI.**
206
206
 
207
207
  ## Hard Rules (ENFORCED — NO EXCEPTIONS)
208
208
 
209
209
  1. **REFUSE** to create any file in `kb/` without valid YAML frontmatter containing ALL 7 required fields (title, category, service, tags, created, last_updated, description).
210
- 2. **REFUSE** to use any category other than: `reference`, `howto`, `procedures`, `troubleshooting`, `best-practices`.
210
+ 2. **REFUSE** to use any category other than: `reference`, `howto`, `procedures`, `troubleshooting`, `best-practices`, `planning`.
211
211
  3. **REFUSE** to place a document in a directory that doesn't match its `category:` field (e.g., a `howto` doc MUST go in `kb/howto/`).
212
212
  4. **REFUSE** to write KB content in any language other than English.
213
213
  5. **ALWAYS** run `ai-toolkit validate` or `scripts/validate.py` after creating/modifying KB documents to verify compliance.
@@ -44,7 +44,7 @@ Generate or update documentation.
44
44
  When creating or updating documents in the `kb/` directory, follow the `documentation-standards` knowledge skill (auto-loaded). Key rules:
45
45
 
46
46
  - **7 required frontmatter fields:** title, category, service, tags, created, last_updated, description
47
- - **5 valid categories:** reference, howto, procedures, troubleshooting, best-practices
47
+ - **6 valid categories:** reference, howto, procedures, troubleshooting, best-practices, planning
48
48
  - **Category must match directory** (e.g., `category: howto` → `kb/howto/`)
49
49
  - **English only.** No exceptions.
50
50
  - **validate.sh rejects docs without valid frontmatter.**
@@ -178,7 +178,7 @@ scripts/validate.py
178
178
  # Checks: required fields present, category is valid, tags non-empty
179
179
  ```
180
180
 
181
- Valid categories: `reference`, `howto`, `procedures`, `troubleshooting`, `best-practices`.
181
+ Valid categories: `reference`, `howto`, `procedures`, `troubleshooting`, `best-practices`, `planning`.
182
182
 
183
183
  ## Anti-Patterns
184
184
 
package/bin/ai-toolkit.js CHANGED
@@ -83,7 +83,7 @@ const COMMANDS = {
83
83
  'copilot-instructions': 'Generate .github/copilot-instructions.md',
84
84
  'gemini-md': 'Generate GEMINI.md for Gemini CLI',
85
85
  'cline-rules': 'Generate .clinerules for Cline (legacy)',
86
- 'cline-dir-rules': 'Generate .cline/rules/*.md for Cline (recommended)',
86
+ 'cline-dir-rules': 'Generate .clinerules/*.md for Cline (recommended)',
87
87
  'roo-modes': 'Generate .roomodes for Roo Code',
88
88
  'roo-dir-rules': 'Generate .roo/rules/*.md shared rules for Roo Code',
89
89
  'aider-conf': 'Generate .aider.conf.yml for Aider',