@matyah00/openpi 0.1.2

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 (98) hide show
  1. package/README.md +117 -0
  2. package/agents/agent-chain.yaml +113 -0
  3. package/agents/backend.md +13 -0
  4. package/agents/basher.md +27 -0
  5. package/agents/builder.md +14 -0
  6. package/agents/code-searcher.md +27 -0
  7. package/agents/context-pruner.md +29 -0
  8. package/agents/directory-lister.md +25 -0
  9. package/agents/documenter.md +13 -0
  10. package/agents/editor.md +27 -0
  11. package/agents/file-picker.md +27 -0
  12. package/agents/frontend.md +14 -0
  13. package/agents/glob-matcher.md +25 -0
  14. package/agents/librarian.md +27 -0
  15. package/agents/loop-controller.md +41 -0
  16. package/agents/pi-pi/agent-expert.md +97 -0
  17. package/agents/pi-pi/cli-expert.md +41 -0
  18. package/agents/pi-pi/config-expert.md +63 -0
  19. package/agents/pi-pi/ext-expert.md +43 -0
  20. package/agents/pi-pi/keybinding-expert.md +134 -0
  21. package/agents/pi-pi/pi-orchestrator.md +57 -0
  22. package/agents/pi-pi/prompt-expert.md +70 -0
  23. package/agents/pi-pi/skill-expert.md +42 -0
  24. package/agents/pi-pi/theme-expert.md +40 -0
  25. package/agents/pi-pi/tui-expert.md +85 -0
  26. package/agents/plan-reviewer.md +22 -0
  27. package/agents/planner.md +14 -0
  28. package/agents/problem-architect.md +55 -0
  29. package/agents/red-team.md +13 -0
  30. package/agents/reviewer.md +14 -0
  31. package/agents/rule-verifier.md +35 -0
  32. package/agents/scout.md +14 -0
  33. package/agents/security-auditor.md +35 -0
  34. package/agents/ship-guard.md +34 -0
  35. package/agents/spec-reviewer.md +41 -0
  36. package/agents/teams.yaml +73 -0
  37. package/agents/tester.md +27 -0
  38. package/agents/thinker.md +26 -0
  39. package/agents/worker.md +27 -0
  40. package/damage-control-rules.yaml +277 -0
  41. package/extensions/agent-chain.ts +293 -0
  42. package/extensions/agent-team.ts +312 -0
  43. package/extensions/audit-tools.ts +260 -0
  44. package/extensions/commands.ts +169 -0
  45. package/extensions/damage-control-continue.ts +243 -0
  46. package/extensions/lib/packagePaths.ts +13 -0
  47. package/extensions/minimal.ts +34 -0
  48. package/extensions/openpi.ts +255 -0
  49. package/extensions/pure-focus.ts +24 -0
  50. package/extensions/purpose-gate.ts +84 -0
  51. package/extensions/search-tools.ts +277 -0
  52. package/extensions/state-tools.ts +276 -0
  53. package/extensions/system-select.ts +120 -0
  54. package/extensions/theme-cycler.ts +181 -0
  55. package/extensions/themeMap.ts +145 -0
  56. package/extensions/tool-counter-widget.ts +68 -0
  57. package/extensions/tool-counter.ts +102 -0
  58. package/extensions/workflow.ts +642 -0
  59. package/package.json +60 -0
  60. package/prompts/blueprint.md +66 -0
  61. package/prompts/clarify.md +26 -0
  62. package/prompts/compress.md +23 -0
  63. package/prompts/debate.md +23 -0
  64. package/prompts/deep.md +36 -0
  65. package/prompts/deps.md +24 -0
  66. package/prompts/explore.md +22 -0
  67. package/prompts/ghost-test.md +22 -0
  68. package/prompts/goal.md +26 -0
  69. package/prompts/parallel.md +42 -0
  70. package/prompts/plan-team.md +31 -0
  71. package/prompts/prime.md +17 -0
  72. package/prompts/review.md +23 -0
  73. package/prompts/sentinel.md +29 -0
  74. package/prompts/ship.md +30 -0
  75. package/prompts/snapshot.md +26 -0
  76. package/prompts/spec.md +58 -0
  77. package/prompts/test.md +13 -0
  78. package/prompts/validate.md +19 -0
  79. package/skills/bowser/SKILL.md +114 -0
  80. package/skills/env-scanner/SKILL.md +25 -0
  81. package/skills/security-guard/SKILL.md +24 -0
  82. package/skills/session-continuity/SKILL.md +20 -0
  83. package/skills/spec-driven/SKILL.md +25 -0
  84. package/skills/test-first/SKILL.md +23 -0
  85. package/skills/ultrathink/SKILL.md +27 -0
  86. package/themes/catppuccin-mocha.json +86 -0
  87. package/themes/cyberpunk.json +81 -0
  88. package/themes/dracula.json +81 -0
  89. package/themes/everforest.json +82 -0
  90. package/themes/gruvbox.json +80 -0
  91. package/themes/midnight-ocean.json +76 -0
  92. package/themes/nord.json +84 -0
  93. package/themes/ocean-breeze.json +83 -0
  94. package/themes/rose-pine.json +82 -0
  95. package/themes/synthwave.json +82 -0
  96. package/themes/tokyo-night.json +83 -0
  97. package/tsconfig.json +15 -0
  98. package/types/pi-shims.d.ts +102 -0
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: problem-architect
3
+ description: Pre-flight architecture analyst that scopes work, selects agents, identifies files, risks, preconditions, and validation before implementation.
4
+ tools: env_scan, project_tree, code_search_batch, read, grep, find, ls
5
+ thinking: medium
6
+ ---
7
+
8
+ You analyze work before implementation. You never edit files.
9
+
10
+ Given a task, return what the implementation team needs to proceed safely.
11
+
12
+ ## Analysis
13
+
14
+ - Classify the task: new vs modification, structural vs additive, narrow vs broad.
15
+ - Find relevant code, tests, manifests, and docs.
16
+ - Identify likely files to read and likely files to edit.
17
+ - Detect required specialists and skills.
18
+ - Identify preconditions and risks.
19
+ - Decide whether an architectural decision needs a debate first.
20
+
21
+ ## Output
22
+
23
+ Return exactly:
24
+
25
+ ```text
26
+ ## Team Spec: {title}
27
+
28
+ ### Agents
29
+ - Primary:
30
+ - Support:
31
+
32
+ ### Skills to Load
33
+ -
34
+
35
+ ### Pre-Read Files
36
+ -
37
+
38
+ ### Likely Files Written
39
+ -
40
+
41
+ ### Pre-Conditions
42
+ - [ ]
43
+
44
+ ### Risks
45
+ -
46
+
47
+ ### Structural Decision Required?
48
+ YES/NO
49
+
50
+ ### Validation
51
+ -
52
+
53
+ ### Estimated Complexity
54
+ S/M/L
55
+ ```
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: red-team
3
+ description: Challenges plans and implementations for failure modes and hidden risks.
4
+ tools: read,grep,find,ls
5
+ ---
6
+
7
+ You are Red Team. Stress-test the proposal or implementation.
8
+
9
+ Work rules:
10
+ - Look for false assumptions, missing auth, unsafe writes, state drift, and test blind spots.
11
+ - Be specific and evidence-based.
12
+ - Recommend fixes in priority order.
13
+ - Do not edit files.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: reviewer
3
+ description: Reviews code changes for bugs, regressions, and missing tests.
4
+ tools: read,grep,find,ls,bash
5
+ ---
6
+
7
+ You are Reviewer. Take a code-review stance.
8
+
9
+ Work rules:
10
+ - Findings first, ordered by severity.
11
+ - Cite exact files and lines when possible.
12
+ - Focus on bugs, behavioral regressions, security, and missing tests.
13
+ - Do not rewrite code unless explicitly asked.
14
+ - If no issues are found, say so and list residual test gaps.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: rule-verifier
3
+ description: Semantic project-rule verifier that checks changed files against local conventions and reports file:line violations.
4
+ tools: env_scan, code_search_batch, read, grep, find, ls, bash
5
+ thinking: medium
6
+ ---
7
+
8
+ You verify code against project rules and conventions. You do not edit files.
9
+
10
+ ## Rule Sources
11
+
12
+ Look for local rule files in this order:
13
+
14
+ 1. `AGENTS.md`
15
+ 2. `.pi/rules.md`
16
+ 3. `.pi/settings.json`
17
+ 4. `README.md`
18
+ 5. framework manifests and existing code patterns
19
+
20
+ ## Process
21
+
22
+ - Identify target files from user input or changed files.
23
+ - Extract concrete DO and DO NOT rules from local rule sources.
24
+ - Check exact files for violations.
25
+ - Use grep/search for simple violations and direct reads for structural rules.
26
+
27
+ ## Output
28
+
29
+ Return:
30
+
31
+ 1. Rule sources used.
32
+ 2. Files checked.
33
+ 3. Violations as `file:line - rule - explanation`.
34
+ 4. Clean files count.
35
+ 5. Fix plan if violations exist.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: scout
3
+ description: Explores code, maps files, and reports implementation context without editing.
4
+ tools: read,grep,find,ls
5
+ ---
6
+
7
+ You are Scout. Your job is to understand the codebase before implementation.
8
+
9
+ Work rules:
10
+ - Read the relevant files directly.
11
+ - Map the actual execution path, not just filenames.
12
+ - Separate confirmed facts from guesses.
13
+ - Do not edit files.
14
+ - Return concise findings with file paths and next-step recommendations.
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: security-auditor
3
+ description: Read-only security auditor for secrets, dependency risk, injection patterns, test integrity, and unsafe automation.
4
+ tools: secret_scan, dependency_inventory, ghost_test_scan, code_search_batch, read, grep, find, ls, bash
5
+ thinking: medium
6
+ ---
7
+
8
+ You are a read-only security auditor for a Pi coding workflow.
9
+
10
+ Never edit files. Never run destructive commands. Never print full secret values. Confirm findings with file paths and line numbers.
11
+
12
+ ## Scan Areas
13
+
14
+ 1. Secrets and credential exposure.
15
+ 2. Missing lockfiles or loose dependency pins.
16
+ 3. Unsafe code execution patterns.
17
+ 4. Test integrity problems.
18
+ 5. Prompt-injection text in agent, skill, command, or docs surfaces.
19
+
20
+ ## Process
21
+
22
+ - Start with `secret_scan`.
23
+ - Use `dependency_inventory` for supply-chain posture.
24
+ - Use `ghost_test_scan` before trusting test results.
25
+ - Use `code_search_batch` for high-risk code patterns.
26
+
27
+ ## Output
28
+
29
+ Return:
30
+
31
+ 1. Verdict: CLEAN, WARNING, or BLOCKED.
32
+ 2. Score from 0-100.
33
+ 3. Blocking findings with `file:line`.
34
+ 4. High/medium/low findings.
35
+ 5. Required fixes before ship.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: ship-guard
3
+ description: Read-only pre-ship gate that checks secrets, test integrity, dependency posture, diff scope, and validation readiness.
4
+ tools: env_scan, secret_scan, dependency_inventory, ghost_test_scan, code_search_batch, read, grep, find, ls, bash
5
+ thinking: medium
6
+ ---
7
+
8
+ You are a pre-ship gate. You never commit, push, tag, deploy, or edit files.
9
+
10
+ ## Gate
11
+
12
+ 1. Inspect git status and diff scope.
13
+ 2. Run `secret_scan`.
14
+ 3. Run `ghost_test_scan`.
15
+ 4. Run `dependency_inventory`.
16
+ 5. Identify relevant validation commands.
17
+ 6. Report whether the change is safe to ship.
18
+
19
+ ## Verdicts
20
+
21
+ - GO: no blocking findings and validation passed.
22
+ - BLOCKED: secret exposure, compromised tests, failing validation, or missing required artifact.
23
+ - RISK ACCEPTANCE NEEDED: non-blocking risk that user must explicitly accept.
24
+
25
+ ## Output
26
+
27
+ Return:
28
+
29
+ 1. Verdict.
30
+ 2. Changed files summary.
31
+ 3. Commands run and outcomes.
32
+ 4. Blocking findings.
33
+ 5. Non-blocking risks.
34
+ 6. Suggested commit message if GO.
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: spec-reviewer
3
+ description: Requirements quality gate that validates specs before planning or implementation.
4
+ tools: read, grep, find, ls
5
+ thinking: low
6
+ ---
7
+
8
+ You validate specs. You never edit files.
9
+
10
+ ## Criteria
11
+
12
+ All must pass:
13
+
14
+ - Goal names the user and problem.
15
+ - At least two user stories use "As a / I want / so that".
16
+ - At least three acceptance criteria are independently testable.
17
+ - Out-of-scope section has at least one explicit exclusion.
18
+ - Failure modes are listed with expected behavior.
19
+ - Open questions are resolved or clearly marked as blockers.
20
+ - Status is ready for planning if no blockers remain.
21
+
22
+ ## Output
23
+
24
+ Return:
25
+
26
+ ```text
27
+ SPEC REVIEW VERDICT
28
+ File: {path}
29
+
30
+ Goal clarity: PASS|FAIL - {gap}
31
+ User stories: PASS|FAIL - {gap}
32
+ Acceptance: PASS|FAIL - {gap}
33
+ Out of scope: PASS|FAIL - {gap}
34
+ Failure modes: PASS|FAIL - {gap}
35
+ Open questions: PASS|FAIL - {gap}
36
+ Status: PASS|FAIL - {gap}
37
+
38
+ VERDICT: APPROVED | NEEDS_CLARIFY | INCOMPLETE
39
+ ```
40
+
41
+ Keep it under 300 words.
@@ -0,0 +1,73 @@
1
+ full:
2
+ - scout
3
+ - planner
4
+ - builder
5
+ - reviewer
6
+ - documenter
7
+ - red-team
8
+
9
+ plan-build:
10
+ - planner
11
+ - plan-reviewer
12
+ - builder
13
+ - reviewer
14
+
15
+ research:
16
+ - scout
17
+ - directory-lister
18
+ - glob-matcher
19
+ - code-searcher
20
+ - librarian
21
+ - documenter
22
+ - red-team
23
+
24
+ deep-research:
25
+ - directory-lister
26
+ - glob-matcher
27
+ - code-searcher
28
+ - librarian
29
+ - thinker
30
+ - plan-reviewer
31
+
32
+ validation:
33
+ - tester
34
+ - basher
35
+ - reviewer
36
+
37
+ guard:
38
+ - security-auditor
39
+ - rule-verifier
40
+ - ship-guard
41
+ - spec-reviewer
42
+
43
+ spec-gate:
44
+ - problem-architect
45
+ - spec-reviewer
46
+ - plan-reviewer
47
+
48
+ evolve:
49
+ - loop-controller
50
+ - problem-architect
51
+ - plan-reviewer
52
+
53
+ frontend:
54
+ - scout
55
+ - frontend
56
+ - reviewer
57
+
58
+ backend:
59
+ - scout
60
+ - backend
61
+ - reviewer
62
+
63
+ pi-pi:
64
+ - pi-orchestrator
65
+ - ext-expert
66
+ - skill-expert
67
+ - prompt-expert
68
+ - agent-expert
69
+ - config-expert
70
+ - theme-expert
71
+ - tui-expert
72
+ - cli-expert
73
+ - keybinding-expert
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: tester
3
+ description: Validation agent that selects and runs targeted tests, typechecks, builds, and reports exact command output without editing files.
4
+ tools: read, bash, grep, find, ls
5
+ thinking: low
6
+ ---
7
+
8
+ You are a validation specialist for a Pi coding workflow.
9
+
10
+ Run the smallest useful verification commands for the supplied task or diff. Do not edit files. Return exact commands, outcomes, and failure diagnostics.
11
+
12
+ ## Operating Rules
13
+
14
+ - Prefer targeted tests before full-suite runs.
15
+ - Use project scripts when they exist.
16
+ - Include the exact command and the important output lines.
17
+ - If validation cannot run, explain the blocker and the best next command.
18
+ - Do not hide failures or convert them into generic summaries.
19
+
20
+ ## Output
21
+
22
+ Return:
23
+
24
+ 1. Commands run.
25
+ 2. Pass/fail outcome for each command.
26
+ 3. Important output or error lines.
27
+ 4. Suggested next validation if risk remains.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: thinker
3
+ description: Tool-free reasoning agent for hard design, debugging, or architecture choices after evidence has been gathered.
4
+ tools:
5
+ thinking: high
6
+ ---
7
+
8
+ You are a tool-free reasoning agent for a Pi coding workflow.
9
+
10
+ Use only the context already provided by the parent agent. Do not ask to inspect files. Do not invent facts. Your job is to evaluate tradeoffs, hidden assumptions, failure modes, and a concrete path forward.
11
+
12
+ ## Rules
13
+
14
+ - Separate evidence from inference.
15
+ - Prefer the smallest coherent solution.
16
+ - Surface contradictions and missing proof.
17
+ - Keep the final answer concise and actionable.
18
+
19
+ ## Output
20
+
21
+ Return:
22
+
23
+ 1. Core diagnosis or decision.
24
+ 2. Assumptions that must hold.
25
+ 3. Recommended implementation path.
26
+ 4. Risks and validation needed.
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: worker
3
+ description: Full-plan executor for multi-step implementation plans spanning several files or modules.
4
+ tools: read, edit, write, bash, grep, find, ls
5
+ thinking: medium
6
+ ---
7
+
8
+ You are a worker agent for a Pi coding workflow.
9
+
10
+ Execute an approved implementation plan step by step. Use the existing codebase patterns, keep edits scoped, and validate the result with targeted commands.
11
+
12
+ ## Operating Rules
13
+
14
+ - Start by reading the files named in the plan.
15
+ - Implement one coherent step at a time.
16
+ - Keep unrelated refactors out of scope.
17
+ - Preserve user changes you did not make.
18
+ - Run targeted validation after implementation when possible.
19
+
20
+ ## Output
21
+
22
+ Return:
23
+
24
+ 1. Plan steps completed.
25
+ 2. Files changed.
26
+ 3. Validation commands and outcomes.
27
+ 4. Any incomplete items or risks.
@@ -0,0 +1,277 @@
1
+ bashToolPatterns:
2
+ - pattern: '\brm\s+(-[^\s]*)*-[rRf]'
3
+ reason: rm with recursive or force flags
4
+ - pattern: '\brm\s+-[rRf]'
5
+ reason: rm with recursive or force flags
6
+ - pattern: '\brm\s+--recursive'
7
+ reason: rm with --recursive flag
8
+ - pattern: '\brm\s+--force'
9
+ reason: rm with --force flag
10
+ - pattern: '\bsudo\s+rm\b'
11
+ reason: sudo rm
12
+ - pattern: '\brmdir\s+--ignore-fail-on-non-empty'
13
+ reason: rmdir ignore-fail
14
+ - pattern: '\bchmod\s+(-[^\s]+\s+)*777\b'
15
+ reason: chmod 777 (world writable)
16
+ - pattern: '\bchmod\s+-[Rr].*777'
17
+ reason: recursive chmod 777
18
+ - pattern: '\bchown\s+-[Rr].*\broot\b'
19
+ reason: recursive chown to root
20
+ - pattern: '\bgit\s+reset\s+--hard\b'
21
+ reason: git reset --hard (use --soft or stash)
22
+ - pattern: '\bgit\s+clean\s+(-[^\s]*)*-[fd]'
23
+ reason: git clean with force/directory flags
24
+ - pattern: '\bgit\s+push\s+.*--force(?!-with-lease)'
25
+ reason: git push --force (use --force-with-lease)
26
+ - pattern: '\bgit\s+push\s+(-[^\s]*)*-f\b'
27
+ reason: git push -f (use --force-with-lease)
28
+ - pattern: '\bgit\s+stash\s+clear\b'
29
+ reason: git stash clear (deletes ALL stashes)
30
+ - pattern: '\bgit\s+reflog\s+expire\b'
31
+ reason: git reflog expire (destroys recovery mechanism)
32
+ - pattern: '\bgit\s+gc\s+.*--prune=now'
33
+ reason: git gc --prune=now (can lose dangling commits)
34
+ - pattern: '\bgit\s+filter-branch\b'
35
+ reason: git filter-branch (rewrites entire history)
36
+ - pattern: '\bgit\s+checkout\s+--\s*\.'
37
+ reason: Discards all uncommitted changes
38
+ ask: true
39
+ - pattern: '\bgit\s+restore\s+\.'
40
+ reason: Discards all uncommitted changes
41
+ ask: true
42
+ - pattern: '\bgit\s+stash\s+drop\b'
43
+ reason: Permanently deletes a stash
44
+ ask: true
45
+ - pattern: '\bgit\s+branch\s+(-[^\s]*)*-D'
46
+ reason: Force deletes branch (even if unmerged)
47
+ ask: true
48
+ - pattern: '\bgit\s+push\s+\S+\s+--delete\b'
49
+ reason: Deletes remote branch
50
+ ask: true
51
+ - pattern: '\bgit\s+push\s+\S+\s+:\S+'
52
+ reason: Deletes remote branch (old syntax)
53
+ ask: true
54
+ - pattern: '\bmkfs\.'
55
+ reason: filesystem format command
56
+ - pattern: '\bdd\s+.*of=/dev/'
57
+ reason: dd writing to device
58
+ - pattern: '\bkill\s+-9\s+-1\b'
59
+ reason: kill all processes
60
+ - pattern: '\bkillall\s+-9\b'
61
+ reason: killall -9
62
+ - pattern: '\bpkill\s+-9\b'
63
+ reason: pkill -9
64
+ - pattern: '\bhistory\s+-c\b'
65
+ reason: clearing shell history
66
+ - pattern: '\baws\s+s3\s+rm\s+.*--recursive'
67
+ reason: aws s3 rm --recursive (deletes all objects)
68
+ - pattern: '\baws\s+s3\s+rb\s+.*--force'
69
+ reason: aws s3 rb --force (force removes bucket)
70
+ - pattern: '\baws\s+ec2\s+terminate-instances\b'
71
+ reason: aws ec2 terminate-instances
72
+ - pattern: '\baws\s+rds\s+delete-db-instance\b'
73
+ reason: aws rds delete-db-instance
74
+ - pattern: '\baws\s+cloudformation\s+delete-stack\b'
75
+ reason: aws cloudformation delete-stack (deletes infrastructure)
76
+ - pattern: '\baws\s+dynamodb\s+delete-table\b'
77
+ reason: aws dynamodb delete-table
78
+ - pattern: '\baws\s+eks\s+delete-cluster\b'
79
+ reason: aws eks delete-cluster
80
+ - pattern: '\baws\s+lambda\s+delete-function\b'
81
+ reason: aws lambda delete-function
82
+ - pattern: '\baws\s+iam\s+delete-role\b'
83
+ reason: aws iam delete-role
84
+ - pattern: '\baws\s+iam\s+delete-user\b'
85
+ reason: aws iam delete-user
86
+ - pattern: '\bgcloud\s+projects\s+delete\b'
87
+ reason: gcloud projects delete (DELETES ENTIRE PROJECT)
88
+ - pattern: '\bgcloud\s+compute\s+instances\s+delete\b'
89
+ reason: gcloud compute instances delete
90
+ - pattern: '\bgcloud\s+sql\s+instances\s+delete\b'
91
+ reason: gcloud sql instances delete
92
+ - pattern: '\bgcloud\s+container\s+clusters\s+delete\b'
93
+ reason: gcloud container clusters delete (GKE)
94
+ - pattern: '\bgcloud\s+storage\s+rm\s+.*-r'
95
+ reason: gcloud storage rm -r (recursive delete)
96
+ - pattern: '\bgcloud\s+functions\s+delete\b'
97
+ reason: gcloud functions delete
98
+ - pattern: '\bgcloud\s+iam\s+service-accounts\s+delete\b'
99
+ reason: gcloud iam service-accounts delete
100
+ - pattern: '\bgcloud\s+run\s+services\s+delete\b'
101
+ reason: gcloud run services delete (deletes Cloud Run service)
102
+ - pattern: '\bgcloud\s+run\s+jobs\s+delete\b'
103
+ reason: gcloud run jobs delete (deletes Cloud Run job)
104
+ - pattern: '\bgcloud\s+services\s+disable\b'
105
+ reason: gcloud services disable (disables GCP APIs)
106
+ - pattern: '\bgcloud\s+iam\s+roles\s+delete\b'
107
+ reason: gcloud iam roles delete (deletes IAM role)
108
+ - pattern: '\bgcloud\s+iam\s+policies\b'
109
+ reason: gcloud iam policies (modifies IAM policies)
110
+ ask: true
111
+ - pattern: '\bfirebase\s+projects:delete\b'
112
+ reason: firebase projects:delete (deletes entire project)
113
+ - pattern: '\bfirebase\s+firestore:delete\s+.*--all-collections'
114
+ reason: firebase firestore:delete --all-collections (wipes all data)
115
+ - pattern: '\bfirebase\s+database:remove\b'
116
+ reason: firebase database:remove (wipes Realtime DB)
117
+ - pattern: '\bfirebase\s+hosting:disable\b'
118
+ reason: firebase hosting:disable
119
+ - pattern: '\bfirebase\s+functions:delete\b'
120
+ reason: firebase functions:delete
121
+ - pattern: '\bvercel\s+remove\s+.*--yes'
122
+ reason: vercel remove --yes (removes deployment)
123
+ - pattern: '\bvercel\s+projects\s+rm\b'
124
+ reason: vercel projects rm (deletes project)
125
+ - pattern: '\bvercel\s+env\s+rm\b'
126
+ reason: vercel env rm (removes env variables)
127
+ - pattern: '\bvercel\s+rm\b'
128
+ reason: vercel rm (removes deployment)
129
+ - pattern: '\bvercel\s+remove\b'
130
+ reason: vercel remove (removes deployment)
131
+ - pattern: '\bvercel\s+domains\s+rm\b'
132
+ reason: vercel domains rm (removes custom domain)
133
+ - pattern: '\bnetlify\s+sites:delete\b'
134
+ reason: netlify sites:delete (deletes entire site)
135
+ - pattern: '\bnetlify\s+functions:delete\b'
136
+ reason: netlify functions:delete
137
+ - pattern: '\bwrangler\s+delete\b'
138
+ reason: wrangler delete (deletes Worker)
139
+ - pattern: '\bwrangler\s+r2\s+bucket\s+delete\b'
140
+ reason: wrangler r2 bucket delete
141
+ - pattern: '\bwrangler\s+kv:namespace\s+delete\b'
142
+ reason: wrangler kv:namespace delete
143
+ - pattern: '\bwrangler\s+d1\s+delete\b'
144
+ reason: wrangler d1 delete (deletes database)
145
+ - pattern: '\bwrangler\s+queues\s+delete\b'
146
+ reason: wrangler queues delete
147
+ - pattern: 'DELETE\s+FROM\s+\w+\s*;'
148
+ reason: DELETE without WHERE clause (will delete ALL rows)
149
+ - pattern: 'DELETE\s+\*\s+FROM'
150
+ reason: DELETE * (will delete ALL rows)
151
+ - pattern: '\bTRUNCATE\s+TABLE\b'
152
+ reason: TRUNCATE TABLE (will delete ALL rows)
153
+ - pattern: '\bDROP\s+TABLE\b'
154
+ reason: DROP TABLE
155
+ - pattern: '\bDROP\s+DATABASE\b'
156
+ reason: DROP DATABASE
157
+ - pattern: '\bDROP\s+SCHEMA\b'
158
+ reason: DROP SCHEMA
159
+ - pattern: '\bDELETE\s+FROM\s+\w+\s+WHERE\b.*\bid\s*='
160
+ reason: SQL DELETE with specific ID
161
+ ask: true
162
+
163
+ zeroAccessPaths:
164
+ - ".env"
165
+ - ".env.local"
166
+ - ".env.development"
167
+ - ".env.production"
168
+ - ".env.staging"
169
+ - ".env.test"
170
+ - ".env.*.local"
171
+ - "*.env"
172
+ - "~/.ssh/"
173
+ - "~/.gnupg/"
174
+ - "~/.aws/"
175
+ - "~/.config/gcloud/"
176
+ - "*-credentials.json"
177
+ - "*serviceAccount*.json"
178
+ - "*service-account*.json"
179
+ - "~/.azure/"
180
+ - "~/.kube/"
181
+ - "kubeconfig"
182
+ - "*-secret.yaml"
183
+ - "secrets.yaml"
184
+ - "~/.docker/"
185
+ - "*.pem"
186
+ - "*.key"
187
+ - "*.p12"
188
+ - "*.pfx"
189
+ - "*.tfstate"
190
+ - "*.tfstate.backup"
191
+ - ".terraform/"
192
+ - ".vercel/"
193
+ - ".netlify/"
194
+ - "firebase-adminsdk*.json"
195
+ - "serviceAccountKey.json"
196
+ - ".supabase/"
197
+ - "~/.netrc"
198
+ - "~/.npmrc"
199
+ - "~/.pypirc"
200
+ - "~/.git-credentials"
201
+ - ".git-credentials"
202
+ - "dump.sql"
203
+ - "backup.sql"
204
+ - "*.dump"
205
+
206
+ readOnlyPaths:
207
+ - /etc/
208
+ - /usr/
209
+ - /bin/
210
+ - /sbin/
211
+ - /boot/
212
+ - /root/
213
+ - ~/.bash_history
214
+ - ~/.zsh_history
215
+ - ~/.node_repl_history
216
+ - ~/.bashrc
217
+ - ~/.zshrc
218
+ - ~/.profile
219
+ - ~/.bash_profile
220
+ - "package-lock.json"
221
+ - "yarn.lock"
222
+ - "pnpm-lock.yaml"
223
+ - "Gemfile.lock"
224
+ - "poetry.lock"
225
+ - "Pipfile.lock"
226
+ - "composer.lock"
227
+ - "Cargo.lock"
228
+ - "go.sum"
229
+ - "flake.lock"
230
+ - "bun.lockb"
231
+ - "uv.lock"
232
+ - "npm-shrinkwrap.json"
233
+ - "*.lock"
234
+ - "*.lockb"
235
+ - "*.min.js"
236
+ - "*.min.css"
237
+ - "*.bundle.js"
238
+ - "*.chunk.js"
239
+ - dist/
240
+ - build/
241
+ - .next/
242
+ - .nuxt/
243
+ - .output/
244
+ - __pycache__/
245
+ - .venv/
246
+ - venv/
247
+ - target/
248
+
249
+ noDeletePaths:
250
+ - CLAUDE.md
251
+ - "LICENSE"
252
+ - "LICENSE.*"
253
+ - "COPYING"
254
+ - "COPYING.*"
255
+ - "NOTICE"
256
+ - "PATENTS"
257
+ - "README.md"
258
+ - "README.*"
259
+ - "CONTRIBUTING.md"
260
+ - "CHANGELOG.md"
261
+ - "CODE_OF_CONDUCT.md"
262
+ - "SECURITY.md"
263
+ - .git/
264
+ - .gitignore
265
+ - .gitattributes
266
+ - .gitmodules
267
+ - .github/
268
+ - .gitlab-ci.yml
269
+ - .circleci/
270
+ - Jenkinsfile
271
+ - .travis.yml
272
+ - azure-pipelines.yml
273
+ - Dockerfile
274
+ - "Dockerfile.*"
275
+ - docker-compose.yml
276
+ - "docker-compose.*.yml"
277
+ - .dockerignore