@fr0mpy/prompt-system 2.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.
- package/bin/cli.js +338 -0
- package/index.js +12 -0
- package/package.json +45 -0
- package/templates/CLAUDE.md +20 -0
- package/templates/agents/10x-simplifier.md +62 -0
- package/templates/agents/accessibility-auditor.md +60 -0
- package/templates/agents/api-contract-guardian.md +65 -0
- package/templates/agents/assumption-challenger.md +52 -0
- package/templates/agents/breaking-change-predictor.md +62 -0
- package/templates/agents/context-curator.md +53 -0
- package/templates/agents/context-loader.md +112 -0
- package/templates/agents/decision-logger.md +68 -0
- package/templates/agents/dependency-detective.md +58 -0
- package/templates/agents/devils-advocate.md +65 -0
- package/templates/agents/error-boundary-designer.md +65 -0
- package/templates/agents/future-you.md +63 -0
- package/templates/agents/incident-replayer.md +62 -0
- package/templates/agents/intent-clarifier.md +45 -0
- package/templates/agents/legacy-archaeologist.md +54 -0
- package/templates/agents/migration-planner.md +61 -0
- package/templates/agents/package-checker.md +33 -0
- package/templates/agents/performance-profiler.md +61 -0
- package/templates/agents/pr-narrator.md +49 -0
- package/templates/agents/pre-code-check.md +48 -0
- package/templates/agents/refactor-scope-limiter.md +54 -0
- package/templates/agents/rubber-duck.md +55 -0
- package/templates/agents/scope-creep-detector.md +61 -0
- package/templates/agents/session-handoff.md +57 -0
- package/templates/agents/structure-validator.md +43 -0
- package/templates/agents/test-gap-finder.md +71 -0
- package/templates/commands/commit.md +9 -0
- package/templates/commands/review.md +12 -0
- package/templates/commands/test.md +11 -0
- package/templates/hooks/session-start.sh +108 -0
- package/templates/hooks/smart-inject-llm.sh +267 -0
- package/templates/hooks/smart-inject-rules.sh +300 -0
- package/templates/hooks/triggers.d/.gitkeep +0 -0
- package/templates/hooks/triggers.json +174 -0
- package/templates/rules/agent-lifecycle-messages.md +77 -0
- package/templates/rules/announce-actions.md +58 -0
- package/templates/rules/code-standards.md +74 -0
- package/templates/rules/command-format.md +60 -0
- package/templates/rules/constructive-pushback.md +62 -0
- package/templates/rules/context-passing-protocol.md +75 -0
- package/templates/rules/rule-format.md +72 -0
- package/templates/rules/subagent-format.md +94 -0
- package/templates/settings.json +47 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<!-- SUMMARY: Follow standard format when creating or modifying subagents -->
|
|
2
|
+
<!-- TRIGGER: subagent -->
|
|
3
|
+
# RULE: Subagent Format
|
|
4
|
+
|
|
5
|
+
⚠️ **ACTIVE RULE** - Apply when creating or modifying subagent files.
|
|
6
|
+
|
|
7
|
+
## 🔐 Enforcement
|
|
8
|
+
|
|
9
|
+
**When creating/modifying subagents, you MUST:**
|
|
10
|
+
1. Use YAML frontmatter with required fields
|
|
11
|
+
2. Include structured output format for context return
|
|
12
|
+
3. Keep prompts concise and actionable
|
|
13
|
+
4. Place in `.claude/agents/` directory
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Template
|
|
18
|
+
|
|
19
|
+
```markdown
|
|
20
|
+
---
|
|
21
|
+
name: agent-name
|
|
22
|
+
description: Brief description. When to use this agent proactively.
|
|
23
|
+
tools: Grep, Glob, Read, WebSearch, Bash
|
|
24
|
+
model: haiku
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
You are a [role] for [project type].
|
|
28
|
+
|
|
29
|
+
## Your Task
|
|
30
|
+
|
|
31
|
+
1. Step one
|
|
32
|
+
2. Step two
|
|
33
|
+
3. Step three
|
|
34
|
+
|
|
35
|
+
## Output Format
|
|
36
|
+
|
|
37
|
+
Return findings in this EXACT structure for context handoff:
|
|
38
|
+
|
|
39
|
+
### RESULT: [found | not-found | partial]
|
|
40
|
+
|
|
41
|
+
### FILES FOUND:
|
|
42
|
+
- `path/to/file.ts:line` - [what's there]
|
|
43
|
+
- `path/to/other.ts:line` - [what's there]
|
|
44
|
+
|
|
45
|
+
### PATTERNS DETECTED:
|
|
46
|
+
- [existing pattern 1]
|
|
47
|
+
- [existing pattern 2]
|
|
48
|
+
|
|
49
|
+
### GAPS:
|
|
50
|
+
- [what's missing]
|
|
51
|
+
|
|
52
|
+
### RECOMMENDATION:
|
|
53
|
+
[Specific action to take based on findings]
|
|
54
|
+
|
|
55
|
+
## Rules
|
|
56
|
+
|
|
57
|
+
- Rule one
|
|
58
|
+
- Rule two
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Required Fields
|
|
64
|
+
|
|
65
|
+
| Field | Purpose |
|
|
66
|
+
|-------|---------|
|
|
67
|
+
| `name` | Unique identifier (kebab-case) |
|
|
68
|
+
| `description` | When Claude should delegate to this agent |
|
|
69
|
+
| `tools` | Allowed tools (Grep, Glob, Read, WebSearch, Bash, Write, Edit) |
|
|
70
|
+
| `model` | `haiku` for fast/cheap, `sonnet` for complex |
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Output Structure (Required)
|
|
75
|
+
|
|
76
|
+
All agents MUST return structured findings:
|
|
77
|
+
|
|
78
|
+
| Section | Required | Content |
|
|
79
|
+
|---------|----------|---------|
|
|
80
|
+
| RESULT | Yes | `found` / `not-found` / `partial` |
|
|
81
|
+
| FILES FOUND | If found | File paths with line numbers |
|
|
82
|
+
| PATTERNS | If found | Existing code patterns |
|
|
83
|
+
| GAPS | If any | What's missing |
|
|
84
|
+
| RECOMMENDATION | Yes | Specific next action |
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Best Practices
|
|
89
|
+
|
|
90
|
+
- Write clear `description` - Claude uses this to decide when to delegate
|
|
91
|
+
- Always include file:line references
|
|
92
|
+
- Be specific in recommendations
|
|
93
|
+
- Use `haiku` model for simple searches
|
|
94
|
+
- Use `sonnet` for complex reasoning
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(git status:*)",
|
|
5
|
+
"Bash(git diff:*)",
|
|
6
|
+
"Bash(git log:*)",
|
|
7
|
+
"Bash(git branch:*)",
|
|
8
|
+
"Bash(git add:*)",
|
|
9
|
+
"Bash(git commit:*)",
|
|
10
|
+
"Bash(git ls-tree:*)",
|
|
11
|
+
"Bash(git ls-files:*)",
|
|
12
|
+
"Bash(npm run:*)",
|
|
13
|
+
"Bash(npm test:*)",
|
|
14
|
+
"Bash(npm run build:*)",
|
|
15
|
+
"Bash(npm run lint:*)"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"hooks": {
|
|
19
|
+
"SessionStart": [
|
|
20
|
+
{
|
|
21
|
+
"matcher": "startup",
|
|
22
|
+
"hooks": [
|
|
23
|
+
{
|
|
24
|
+
"type": "command",
|
|
25
|
+
"command": ".claude/hooks/session-start.sh",
|
|
26
|
+
"statusMessage": "Loading project context..."
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"UserPromptSubmit": [
|
|
32
|
+
{
|
|
33
|
+
"matcher": ".*",
|
|
34
|
+
"hooks": [
|
|
35
|
+
{
|
|
36
|
+
"type": "command",
|
|
37
|
+
"command": ".claude/hooks/smart-inject-llm.sh",
|
|
38
|
+
"statusMessage": "Analyzing prompt..."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"sandbox": {
|
|
45
|
+
"enabled": true
|
|
46
|
+
}
|
|
47
|
+
}
|