@mohammadhprp/system-prompt 0.10.1 → 0.11.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.
@@ -26,6 +26,3 @@ Use conventional commit format: `type: description`
26
26
  - `test:` - Adding or updating tests
27
27
  - `perf:` - Performance improvement
28
28
  - `ci:` - CI/CD changes
29
-
30
- **Note:** During release generation, `chore:`, `docs:`, and `ci:` commits are filtered from changelog. Only user-facing changes (`fix:`, `feat:`, etc.) are included.
31
-
package/package.json CHANGED
@@ -1,7 +1,15 @@
1
1
  {
2
2
  "name": "@mohammadhprp/system-prompt",
3
- "version": "0.10.1",
3
+ "version": "0.11.1",
4
4
  "description": "AI Coding Agent Framework — interactive bootstrap CLI",
5
+ "keywords": [
6
+ "ai",
7
+ "coding-agent",
8
+ "developer-tools",
9
+ "cli",
10
+ "agent-framework",
11
+ "opencode"
12
+ ],
5
13
  "type": "module",
6
14
  "bin": {
7
15
  "system-prompt": "bin/system-prompt.js"
package/src/installer.js CHANGED
@@ -10,7 +10,72 @@ const packageRoot = resolve(__dirname, '..');
10
10
 
11
11
  const AGENTS_MD = `# AGENTS.md
12
12
 
13
- > Fill this base on project use /init command
13
+ Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.
14
+
15
+ Read CONTEXT.md for repository-specific setup, commands, architecture, tests, and workflow guidance.
16
+
17
+ **Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.
18
+
19
+ ## 1. Think Before Coding
20
+
21
+ **Don't assume. Don't hide confusion. Surface tradeoffs.**
22
+
23
+ Before implementing:
24
+ - State your assumptions explicitly. If uncertain, ask.
25
+ - If multiple interpretations exist, present them - don't pick silently.
26
+ - If a simpler approach exists, say so. Push back when warranted.
27
+ - If something is unclear, stop. Name what's confusing. Ask.
28
+
29
+ ## 2. Simplicity First
30
+
31
+ **Minimum code that solves the problem. Nothing speculative.**
32
+
33
+ - No features beyond what was asked.
34
+ - No abstractions for single-use code.
35
+ - No "flexibility" or "configurability" that wasn't requested.
36
+ - No error handling for impossible scenarios.
37
+ - If you write 200 lines, and it could be 50, rewrite it.
38
+
39
+ Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
40
+
41
+ ## 3. Surgical Changes
42
+
43
+ **Touch only what you must. Clean up only your own mess.**
44
+
45
+ When editing existing code:
46
+ - Don't "improve" adjacent code, comments, or formatting.
47
+ - Don't refactor things that aren't broken.
48
+ - Match existing style, even if you'd do it differently.
49
+ - If you notice unrelated dead code, mention it - don't delete it.
50
+
51
+ When your changes create orphans:
52
+ - Remove imports/variables/functions that YOUR changes made unused.
53
+ - Don't remove pre-existing dead code unless asked.
54
+
55
+ The test: Every changed line should trace directly to the user's request.
56
+
57
+ ## 4. Goal-Driven Execution
58
+
59
+ **Define success criteria. Loop until verified.**
60
+
61
+ Transform tasks into verifiable goals:
62
+ - "Add validation" → "Write tests for invalid inputs, then make them pass"
63
+ - "Fix the bug" → "Write a test that reproduces it, then make it pass"
64
+ - "Refactor X" → "Ensure tests pass before and after"
65
+
66
+ For multistep tasks, state a brief plan:
67
+
68
+ 1. [Step] → verify: [check]
69
+ 2. [Step] → verify: [check]
70
+ 3. [Step] → verify: [check]
71
+
72
+
73
+ Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
74
+
75
+ ---
76
+
77
+ **These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.
78
+
14
79
  `;
15
80
 
16
81
  const OPENCODE_GITIGNORE = `.env*