ai-dev-starter 1.0.0 → 1.0.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.
@@ -53,6 +53,18 @@ If the file does not exist, ask the user to run `ai-dev-starter init` or fill in
53
53
 
54
54
  ---
55
55
 
56
+ ## Automatic Post-Implementation Review (Self-Review Mode)
57
+
58
+ If `auto_review_on_change: true` is enabled in `.agents/project-context.md` (or when requested by the user):
59
+ - After you create, modify, or refactor any code files in response to a prompt, you MUST NOT declare completion immediately.
60
+ - Instead, automatically run a PR-Agent self-review on your modified diff before finishing:
61
+ 1. Inspect the diff of modified files (`git diff`).
62
+ 2. Check for security vulnerabilities, logic defects, unhandled edge cases, or regressions.
63
+ 3. Verify against the project's standards in `.agents/standards/`.
64
+ 4. Append a concise **Self-Review Summary** (P0–P3 status) at the end of your response, confirming the change is clean.
65
+
66
+ ---
67
+
56
68
  ## Report Language
57
69
 
58
70
  Default: **Persian (Farsi)**. Preserve English for code, identifiers, file paths, commands.
@@ -47,3 +47,10 @@ Before any task, check `.agents/project-context.md` for:
47
47
  | Performance audit | `@performance-audit.mdc` |
48
48
  | Architecture review | `@architecture-review.mdc` |
49
49
  | Test generation | `@test-generation.mdc` |
50
+
51
+ ## Automatic Post-Implementation Review
52
+
53
+ If `auto_review_on_change: true` is set in `.agents/project-context.md` (or requested by the user):
54
+ - After you edit or generate code in response to any prompt, automatically inspect the git diff before completing.
55
+ - Verify correctness, security, and project standards.
56
+ - Append a concise P0–P3 Self-Review checklist to your response.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-dev-starter",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Universal AI Development Starter Kit for Google Antigravity, Cursor, and modern AI coding IDEs. Production-quality workflows for code review, bug fixing, refactoring, and security auditing without separate LLM API keys.",
5
5
  "main": "scripts/ai-dev-starter.js",
6
6
  "bin": {
@@ -376,6 +376,7 @@ coverage_target: 80
376
376
  \`\`\`yaml
377
377
  report_language: "${ctx.reportLanguage}" # fa = Persian (Farsi), en = English
378
378
  severity_threshold: "${ctx.severityThreshold}" # Minimum severity to include in reports (P0, P1, P2, P3)
379
+ auto_review_on_change: ${ctx.autoReview ? 'true' : 'false'} # If true, AI automatically runs PR-Agent review after every code edit prompt
379
380
  \`\`\`
380
381
 
381
382
  ---
@@ -134,6 +134,7 @@ external_services:
134
134
  ```yaml
135
135
  report_language: "fa" # fa = Persian (Farsi), en = English
136
136
  severity_threshold: "P2" # Minimum severity to include in reports (P0, P1, P2, P3)
137
+ auto_review_on_change: true # When true, AI automatically runs PR-Agent review after every code change prompt
137
138
  ```
138
139
 
139
140
  ---