@fro.bot/systematic 2.33.3 → 3.0.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.
Files changed (112) hide show
  1. package/ATTRIBUTIONS.md +1 -1
  2. package/agents/design/design-iterator.md +1 -0
  3. package/agents/research/best-practices-researcher.md +6 -8
  4. package/agents/review/pattern-recognition-specialist.md +1 -1
  5. package/agents/workflow/systematic-implementer.md +1 -0
  6. package/dist/cli.js +348 -53
  7. package/dist/{index-vyzhzvap.js → index-yskzf7vh.js} +587 -386
  8. package/dist/index.js +100 -155
  9. package/dist/lib/agent-overlays.d.ts +0 -1
  10. package/dist/lib/agent-resolver.d.ts +28 -0
  11. package/dist/lib/bootstrap.d.ts +8 -1
  12. package/dist/lib/bundled-names.d.ts +3 -3
  13. package/dist/lib/pi-delegate-session.d.ts +31 -0
  14. package/dist/lib/pi-delegate-tool.d.ts +42 -0
  15. package/dist/lib/removed-names.d.ts +3 -3
  16. package/dist/lib/setup.d.ts +36 -0
  17. package/dist/lib/skill-loader.d.ts +1 -2
  18. package/dist/lib/skill-resolver.d.ts +39 -0
  19. package/dist/lib/skill-tool.d.ts +2 -11
  20. package/dist/lib/skills.d.ts +1 -9
  21. package/dist/lib/source-model-defaults.d.ts +1 -1
  22. package/dist/pi.d.ts +7 -0
  23. package/dist/pi.js +3641 -0
  24. package/dist/schemas/systematic-config.schema.json +47 -242
  25. package/package.json +29 -6
  26. package/skills/ce-brainstorm/references/handoff.md +5 -26
  27. package/skills/ce-brainstorm/references/universal-brainstorming.md +0 -1
  28. package/skills/ce-compound/SKILL.md +8 -12
  29. package/skills/ce-ideate/references/post-ideation-workflow.md +21 -85
  30. package/skills/ce-plan/SKILL.md +6 -6
  31. package/skills/ce-plan/references/deepening-workflow.md +6 -7
  32. package/skills/ce-plan/references/plan-handoff.md +1 -17
  33. package/skills/ce-plan/references/universal-planning.md +0 -4
  34. package/skills/ce-review/SKILL.md +10 -19
  35. package/skills/ce-review/references/persona-catalog.md +2 -7
  36. package/skills/ce-review/references/review-output-template.md +0 -1
  37. package/skills/ce-work/SKILL.md +1 -1
  38. package/skills/deepen-plan/SKILL.md +6 -7
  39. package/skills/document-review/SKILL.md +2 -2
  40. package/skills/git-commit-push-pr/SKILL.md +1 -2
  41. package/skills/lfg/SKILL.md +1 -1
  42. package/skills/onboarding/SKILL.md +1 -12
  43. package/skills/orchestrating-subagents/SKILL.md +2 -2
  44. package/skills/slfg/SKILL.md +2 -3
  45. package/skills/test-browser/SKILL.md +2 -2
  46. package/skills/todos/SKILL.md +239 -0
  47. package/skills/writing-skills/SKILL.md +102 -1
  48. package/skills/{writing-systematic-skills → writing-skills}/references/foundation-conventions.md +5 -5
  49. package/agents/design/design-implementation-reviewer.md +0 -95
  50. package/agents/design/figma-design-sync.md +0 -173
  51. package/agents/docs/ankane-readme-writer.md +0 -51
  52. package/agents/review/cli-agent-readiness-reviewer.md +0 -418
  53. package/agents/review/data-integrity-guardian.md +0 -72
  54. package/agents/review/data-migration-expert.md +0 -99
  55. package/agents/review/dhh-rails-reviewer.md +0 -46
  56. package/agents/review/julik-frontend-races-reviewer.md +0 -49
  57. package/agents/review/kieran-python-reviewer.md +0 -47
  58. package/agents/review/kieran-rails-reviewer.md +0 -47
  59. package/agents/review/performance-oracle.md +0 -112
  60. package/agents/review/schema-drift-detector.md +0 -143
  61. package/agents/review/security-sentinel.md +0 -95
  62. package/agents/workflow/lint.md +0 -17
  63. package/dist/lib/converter.d.ts +0 -14
  64. package/skills/andrew-kane-gem-writer/SKILL.md +0 -184
  65. package/skills/andrew-kane-gem-writer/references/database-adapters.md +0 -231
  66. package/skills/andrew-kane-gem-writer/references/module-organization.md +0 -121
  67. package/skills/andrew-kane-gem-writer/references/rails-integration.md +0 -183
  68. package/skills/andrew-kane-gem-writer/references/resources.md +0 -119
  69. package/skills/andrew-kane-gem-writer/references/testing-patterns.md +0 -261
  70. package/skills/changelog/SKILL.md +0 -139
  71. package/skills/claude-permissions-optimizer/SKILL.md +0 -166
  72. package/skills/claude-permissions-optimizer/scripts/extract-commands.mjs +0 -655
  73. package/skills/claude-permissions-optimizer/scripts/normalize.mjs +0 -151
  74. package/skills/dhh-rails-style/SKILL.md +0 -186
  75. package/skills/dhh-rails-style/references/architecture.md +0 -653
  76. package/skills/dhh-rails-style/references/controllers.md +0 -303
  77. package/skills/dhh-rails-style/references/frontend.md +0 -510
  78. package/skills/dhh-rails-style/references/gems.md +0 -266
  79. package/skills/dhh-rails-style/references/models.md +0 -359
  80. package/skills/dhh-rails-style/references/testing.md +0 -338
  81. package/skills/dspy-ruby/SKILL.md +0 -737
  82. package/skills/dspy-ruby/assets/config-template.rb +0 -187
  83. package/skills/dspy-ruby/assets/module-template.rb +0 -300
  84. package/skills/dspy-ruby/assets/signature-template.rb +0 -221
  85. package/skills/dspy-ruby/references/core-concepts.md +0 -674
  86. package/skills/dspy-ruby/references/observability.md +0 -366
  87. package/skills/dspy-ruby/references/optimization.md +0 -603
  88. package/skills/dspy-ruby/references/providers.md +0 -418
  89. package/skills/dspy-ruby/references/toolsets.md +0 -502
  90. package/skills/every-style-editor/SKILL.md +0 -135
  91. package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +0 -529
  92. package/skills/feature-video/SKILL.md +0 -383
  93. package/skills/gemini-imagegen/SKILL.md +0 -237
  94. package/skills/gemini-imagegen/requirements.txt +0 -2
  95. package/skills/gemini-imagegen/scripts/compose_images.py +0 -157
  96. package/skills/gemini-imagegen/scripts/edit_image.py +0 -144
  97. package/skills/gemini-imagegen/scripts/gemini_images.py +0 -263
  98. package/skills/gemini-imagegen/scripts/generate_image.py +0 -133
  99. package/skills/gemini-imagegen/scripts/multi_turn_chat.py +0 -216
  100. package/skills/generate_command/SKILL.md +0 -164
  101. package/skills/orchestrating-swarms/SKILL.md +0 -1723
  102. package/skills/proof/SKILL.md +0 -291
  103. package/skills/proof/references/hitl-review.md +0 -368
  104. package/skills/rclone/SKILL.md +0 -150
  105. package/skills/rclone/scripts/check_setup.sh +0 -60
  106. package/skills/setup/SKILL.md +0 -22
  107. package/skills/test-xcode/SKILL.md +0 -214
  108. package/skills/todo-create/SKILL.md +0 -109
  109. package/skills/todo-resolve/SKILL.md +0 -68
  110. package/skills/todo-triage/SKILL.md +0 -70
  111. package/skills/writing-systematic-skills/SKILL.md +0 -119
  112. /package/skills/{todo-create → todos}/assets/todo-template.md +0 -0
@@ -1,166 +0,0 @@
1
- ---
2
- name: claude-permissions-optimizer
3
- context: fork
4
- description: Optimize Claude Code permissions by finding safe Bash commands from session history and auto-applying them to settings.json. Can run from any coding agent but targets Claude Code specifically. Use when experiencing permission fatigue, too many permission prompts, wanting to optimize permissions, or needing to set up allowlists. Triggers on "optimize permissions", "reduce permission prompts", "allowlist commands", "too many permission prompts", "permission fatigue", "permission setup", or complaints about clicking approve too often.
5
- subtask: true
6
- deprecated:
7
- since: v2.19.0
8
- removal: v3.0.0
9
- reason: "Targets Claude Code's ~/.claude/settings.json allowlist mechanism. OpenCode uses a SQLite-backed session-scoped permission model with built-in always-persistence via the always button. No prompt-fatigue analog exists in OpenCode; there is no equivalent allowlist to optimize."
10
- ---
11
-
12
- # Claude Permissions Optimizer
13
-
14
- Find safe Bash commands that are causing unnecessary permission prompts and auto-allow them in `settings.json` -- evidence-based, not prescriptive.
15
-
16
- This skill identifies commands safe to auto-allow based on actual session history. It does not handle requests to allowlist specific dangerous commands. If the user asks to allow something destructive (e.g., `rm -rf`, `git push --force`), explain that this skill optimizes for safe commands only, and that manual allowlist changes can be made directly in settings.json.
17
-
18
- ## Pre-check: Confirm environment
19
-
20
- Determine whether you are currently running inside Claude Code or a different coding agent (Codex, Gemini CLI, Cursor, etc.).
21
-
22
- **If running inside Claude Code:** Proceed directly to Step 1.
23
-
24
- **If running in a different agent:** Inform the user before proceeding:
25
-
26
- > "This skill analyzes Claude Code session history and writes to Claude Code's settings.json. You're currently in [agent name], but I can still optimize your Claude Code permissions from here -- the results will apply next time you use Claude Code."
27
-
28
- Then proceed to Step 1 normally. The skill works from any environment as long as `~/.claude/` (or `$CLAUDE_CONFIG_DIR`) exists on the machine.
29
-
30
- ## Step 1: Choose Analysis Scope
31
-
32
- Ask the user how broadly to analyze using the platform's blocking question tool (`question` in Claude Code, `request_user_input` in Codex, `ask_user` in Gemini). If no question tool is available, present the numbered options and wait for the user's reply.
33
-
34
- 1. **All projects** (Recommended) -- sessions across every project
35
- 2. **This project only** -- sessions for the current working directory
36
- 3. **Custom** -- user specifies constraints (time window, session count, etc.)
37
-
38
- Default to **All projects** unless the user explicitly asks for a single project. More data produces better recommendations.
39
-
40
- ## Step 2: Run Extraction Script
41
-
42
- Run the bundled script. It handles everything: loads the current allowlist, scans recent session transcripts (most recent 500 sessions or last 30 days, whichever is more restrictive), filters already-covered commands, applies a min-count threshold (5+), normalizes into `Bash(pattern)` rules, and pre-classifies each as safe/review/dangerous.
43
-
44
- **All projects:**
45
- ```bash
46
- node <skill-dir>/scripts/extract-commands.mjs
47
- ```
48
-
49
- **This project only** -- pass the project slug (absolute path with every non-alphanumeric char replaced by `-`, e.g., `/Users/tmchow/Code/my-project` becomes `-Users-tmchow-Code-my-project`):
50
- ```bash
51
- node <skill-dir>/scripts/extract-commands.mjs --project-slug <slug>
52
- ```
53
-
54
- Optional: `--days <N>` to limit to the last N days. Omit to analyze all available sessions.
55
-
56
- The output JSON has:
57
- - `green`: safe patterns to recommend `{ pattern, count, sessions, examples }`
58
- - `redExamples`: top 5 blocked dangerous patterns `{ pattern, reason, count }` (or empty)
59
- - `yellowFootnote`: one-line summary of frequently-used commands that aren't safe to auto-allow (or null)
60
- - `stats`: `totalExtracted`, `alreadyCovered`, `belowThreshold`, `patternsReturned`, `greenRawCount`, etc.
61
-
62
- The model's job is to **present** the script's output, not re-classify.
63
-
64
- If the script returns empty results, tell the user their allowlist is already well-optimized or they don't have enough session history yet -- suggest re-running after a few more working sessions.
65
-
66
- ## Step 3: Present Results
67
-
68
- Present in three parts. Keep the formatting clean and scannable.
69
-
70
- ### Part 1: Analysis summary
71
-
72
- Show the work done using the script's `stats`. Reaffirm the scope. Keep it to 4-5 lines.
73
-
74
- **Example:**
75
- ```
76
- ## Analysis (systematic)
77
-
78
- Scanned **24 sessions** for this project.
79
- Found **312 unique Bash commands** across those sessions.
80
-
81
- - **245** already covered by your 43 existing allowlist rules (79%)
82
- - **61** used fewer than 5 times (filtered as noise)
83
- - **6 commands** remain that regularly trigger permission prompts
84
- ```
85
-
86
- ### Part 2: Recommendations
87
-
88
- Present `green` patterns as a numbered table. If `yellowFootnote` is not null, include it as a line after the table.
89
-
90
- ```
91
- ### Safe to auto-allow
92
- | # | Pattern | Evidence |
93
- |---|---------|----------|
94
- | 1 | `Bash(bun test *)` | 23 uses across 8 sessions |
95
- | 2 | `Bash(bun run *)` | 18 uses, covers dev/build/lint scripts |
96
- | 3 | `Bash(node *)` | 12 uses across 5 sessions |
97
-
98
- Also frequently used: bun install, mkdir (not classified as safe to auto-allow but may be worth reviewing)
99
- ```
100
-
101
- If `redExamples` is non-empty, show a compact "Blocked" table after the recommendations. This builds confidence that the classifier is doing its job. Show up to 3 examples.
102
-
103
- ```
104
- ### Blocked from recommendations
105
- | Pattern | Reason | Uses |
106
- |---------|--------|------|
107
- | `rm *` | Irreversible file deletion | 21 |
108
- | `eval *` | Arbitrary code execution | 14 |
109
- | `git reset --hard *` | Destroys uncommitted work | 5 |
110
- ```
111
-
112
- ### Part 3: Bottom line
113
-
114
- **One sentence only.** Frame the impact relative to current coverage using the script's stats. Nothing else -- no pattern names, no usage counts, no elaboration. The question tool UI that immediately follows will visually clip any trailing text, so this must fit on a single short line.
115
-
116
- ```
117
- Adding 22 rules would bring your allowlist coverage from 65% to 93%.
118
- ```
119
-
120
- Compute the percentages from stats:
121
- - **Before:** `alreadyCovered / totalExtracted * 100`
122
- - **After:** `(alreadyCovered + greenRawCount) / totalExtracted * 100`
123
-
124
- Use `greenRawCount` (the number of unique raw commands the green patterns cover), not `patternsReturned` (which is just the number of normalized patterns).
125
-
126
- ## Step 4: Get User Confirmation
127
-
128
- The recommendations table is already displayed. Use the platform's blocking question tool to ask for the decision:
129
-
130
- 1. **Apply all to user settings** (`~/.claude/settings.json`)
131
- 2. **Apply all to project settings** (`.claude/settings.json`)
132
- 3. **Skip**
133
-
134
- If the user wants to exclude specific items, they can reply in free text (e.g., "all except 3 and 7 to user settings"). The numbered table is already visible for reference -- no need to re-list items in the question tool.
135
-
136
- ## Step 5: Apply to Settings
137
-
138
- For each target settings file:
139
-
140
- 1. Read the current file (create `{ "permissions": { "allow": [] } }` if it doesn't exist)
141
- 2. Append new patterns to `permissions.allow`, avoiding duplicates
142
- 3. Sort the allow array alphabetically
143
- 4. Write back with 2-space indentation
144
- 5. **Verify the write** -- tell the user you're validating the JSON before running this command, e.g., "Verifying settings.json is valid JSON..." The command looks alarming without context:
145
- ```bash
146
- node -e "JSON.parse(require('fs').readFileSync('<path>','utf8'))"
147
- ```
148
- If this fails, the file is invalid JSON. Immediately restore from the content read in step 1 and report the error. Do not continue to other files.
149
-
150
- After successful verification:
151
-
152
- ```
153
- Applied N rules to ~/.claude/settings.json
154
- Applied M rules to .claude/settings.json
155
-
156
- These commands will no longer trigger permission prompts.
157
- ```
158
-
159
- If `.claude/settings.json` was modified and is tracked by git, mention that committing it would benefit teammates.
160
-
161
- ## Edge Cases
162
-
163
- - **No project context** (running outside a project): Only offer user-level settings as write target.
164
- - **Settings file doesn't exist**: Create it with `{ "permissions": { "allow": [] } }`. For `.claude/settings.json`, also create the `.claude/` directory if needed.
165
- - **Deny rules**: If a deny rule already blocks a command, warn rather than adding an allow rule (deny takes precedence in Claude Code).
166
-