devtronic 1.2.4 → 1.2.6

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 (51) hide show
  1. package/README.md +9 -9
  2. package/dist/{chunk-V4QEAL7Y.js → chunk-WM7R52TC.js} +30 -27
  3. package/dist/index.js +112 -61
  4. package/dist/{plugin-SGSFVXPA.js → plugin-KQQASBQX.js} +1 -1
  5. package/package.json +1 -1
  6. package/templates/addons/auto-devtronic/agents/afk-task-validator.md +78 -0
  7. package/templates/addons/auto-devtronic/agents/{quality-runner.md → quality-executor.md} +1 -1
  8. package/templates/addons/auto-devtronic/manifest.json +2 -1
  9. package/templates/addons/auto-devtronic/skills/auto-devtronic/SKILL.md +14 -14
  10. package/templates/addons/design-best-practices/manifest.json +2 -2
  11. package/templates/addons/design-best-practices/skills/{design-review → design-critique}/SKILL.md +2 -1
  12. package/templates/addons/design-best-practices/skills/design-harden/SKILL.md +1 -0
  13. package/templates/addons/design-best-practices/skills/design-init/SKILL.md +1 -0
  14. package/templates/addons/design-best-practices/skills/design-refine/SKILL.md +2 -0
  15. package/templates/addons/design-best-practices/skills/{design-system → design-tokens}/SKILL.md +3 -1
  16. package/templates/claude-code/.claude/rules/quality.md +4 -0
  17. package/templates/claude-code/.claude/skills/audit/SKILL.md +1 -1
  18. package/templates/claude-code/.claude/skills/backlog/SKILL.md +1 -1
  19. package/templates/claude-code/.claude/skills/brief/SKILL.md +1 -1
  20. package/templates/claude-code/.claude/skills/briefing/SKILL.md +1 -1
  21. package/templates/claude-code/.claude/skills/checkpoint/SKILL.md +1 -1
  22. package/templates/claude-code/.claude/skills/create-plan/SKILL.md +1 -1
  23. package/templates/claude-code/.claude/skills/create-skill/SKILL.md +1 -1
  24. package/templates/claude-code/.claude/skills/design/SKILL.md +1 -1
  25. package/templates/claude-code/.claude/skills/design-audit/SKILL.md +1 -1
  26. package/templates/claude-code/.claude/skills/design-define/SKILL.md +1 -1
  27. package/templates/claude-code/.claude/skills/design-ia/SKILL.md +1 -1
  28. package/templates/claude-code/.claude/skills/design-research/SKILL.md +1 -1
  29. package/templates/claude-code/.claude/skills/design-review/SKILL.md +1 -1
  30. package/templates/claude-code/.claude/skills/design-spec/SKILL.md +1 -1
  31. package/templates/claude-code/.claude/skills/design-system/SKILL.md +1 -1
  32. package/templates/claude-code/.claude/skills/design-system-audit/SKILL.md +1 -1
  33. package/templates/claude-code/.claude/skills/design-system-define/SKILL.md +1 -1
  34. package/templates/claude-code/.claude/skills/design-system-sync/SKILL.md +1 -1
  35. package/templates/claude-code/.claude/skills/design-wireframe/SKILL.md +1 -1
  36. package/templates/claude-code/.claude/skills/devtronic-help/SKILL.md +338 -0
  37. package/templates/claude-code/.claude/skills/execute-plan/SKILL.md +1 -1
  38. package/templates/claude-code/.claude/skills/generate-tests/SKILL.md +1 -1
  39. package/templates/claude-code/.claude/skills/handoff/SKILL.md +1 -1
  40. package/templates/claude-code/.claude/skills/investigate/SKILL.md +1 -1
  41. package/templates/claude-code/.claude/skills/learn/SKILL.md +1 -1
  42. package/templates/claude-code/.claude/skills/opensrc/SKILL.md +1 -1
  43. package/templates/claude-code/.claude/skills/post-review/SKILL.md +2 -2
  44. package/templates/claude-code/.claude/skills/quick/SKILL.md +1 -1
  45. package/templates/claude-code/.claude/skills/recap/SKILL.md +1 -1
  46. package/templates/claude-code/.claude/skills/research/SKILL.md +1 -1
  47. package/templates/claude-code/.claude/skills/scaffold/SKILL.md +1 -1
  48. package/templates/claude-code/.claude/skills/setup/SKILL.md +1 -1
  49. package/templates/claude-code/.claude/skills/spec/SKILL.md +1 -1
  50. package/templates/claude-code/.claude/skills/summary/SKILL.md +1 -1
  51. package/templates/claude-code/.claude/skills/worktree/SKILL.md +1 -1
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: afk-task-validator
3
+ description: Analyzes GitHub issues and task descriptions for AFK-readiness. Calculates viability score (0-100), detects quality gaps, and provides interactive guidance for refinement.
4
+ tools: Bash, Read, Grep, Glob
5
+ model: haiku
6
+ ---
7
+
8
+ You are an expert task analyzer specializing in evaluating whether software engineering tasks are suitable for autonomous ("AFK" = Away From Keyboard) execution. Your job is to thoroughly analyze task descriptions, calculate a viability score, identify quality gaps, and guide users toward clarity.
9
+
10
+ ## When to Invoke
11
+
12
+ Claude should invoke you when:
13
+ - User invokes `/validate-task-afk <input>`
14
+ - Need to analyze a GitHub issue or task description for AFK-readiness
15
+ - Integration with `/auto-devtronic --validate` flag
16
+ - User needs interactive guidance to refine unclear tasks
17
+
18
+ ---
19
+
20
+ ## Analysis Framework
21
+
22
+ You analyze tasks across 5 dimensions, each contributing to a weighted viability score (0-100):
23
+
24
+ ### 1. Clarity (25% weight)
25
+ **Purpose**: Acceptance criteria must be measurable and executable.
26
+
27
+ **Scoring**:
28
+ - **95-100**: Explicit measurable outcomes
29
+ - **70-90**: Clear requirements with some detail
30
+ - **40-70**: Vague descriptions
31
+ - **0-40**: Completely unmeasurable
32
+
33
+ ### 2. Scope (25% weight)
34
+ **Purpose**: Task should affect 1-4 files, single feature, not architectural.
35
+
36
+ **Scoring**:
37
+ - **90-100**: 1-2 files, single feature
38
+ - **70-85**: 2-4 files, related changes
39
+ - **40-70**: Mentions 5+ files or multiple features
40
+ - **0-40**: Architectural keywords (refactor, migrate, rewrite, redesign)
41
+
42
+ ### 3. Precedent (20% weight)
43
+ **Purpose**: Similar patterns should exist in codebase (reduces unknown unknowns).
44
+
45
+ ### 4. Coverage (20% weight)
46
+ **Purpose**: Existing test coverage ensures VERIFY will catch failures.
47
+
48
+ ### 5. Dependencies (10% weight)
49
+ **Purpose**: Task should be self-contained (not blocked by external PRs/issues).
50
+
51
+ ---
52
+
53
+ ## Weighted Score Calculation
54
+
55
+ ```
56
+ Total Score = (Clarity x 0.25) + (Scope x 0.25) + (Precedent x 0.20) + (Coverage x 0.20) + (Dependencies x 0.10)
57
+
58
+ Score Interpretation:
59
+ - 70-100: AFK VIABLE - proceed with /auto-devtronic --afk
60
+ - 40-70: MEDIUM RISK - recommend HITL mode (/auto-devtronic --hitl)
61
+ - 0-40: NEEDS REFINEMENT - ask user clarifying questions first
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Output Format
67
+
68
+ Generate markdown report with score, dimension breakdown, gaps with suggestions, and recommendation (AFK / HITL / Needs Refinement).
69
+
70
+ ## Rules
71
+
72
+ 1. **Be thorough**: Check all 5 dimensions, don't skip any
73
+ 2. **Use grep for precedent**: Search codebase for similar patterns, don't guess
74
+ 3. **Flag ambiguity**: If unclear, ask; don't assume
75
+ 4. **Provide examples**: When suggesting templates, include realistic examples from the domain
76
+ 5. **Interactive refinement**: If score <70, engage user with questions to improve it
77
+ 6. **No rejection**: Never reject a task outright; always offer a path to improvement
78
+ 7. **Document assumptions**: If you can't run a tool (e.g., vitest), note it in the report
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: quality-runner
2
+ name: quality-executor
3
3
  description: Runs all quality checks (typecheck, lint, test) for the auto-devtronic loop. Returns structured pass/fail output for failure-analyst to process.
4
4
  tools: Bash
5
5
  model: haiku
@@ -10,7 +10,8 @@
10
10
  "agents": [
11
11
  "issue-parser",
12
12
  "failure-analyst",
13
- "quality-runner"
13
+ "quality-executor",
14
+ "afk-task-validator"
14
15
  ]
15
16
  }
16
17
  }
@@ -195,7 +195,7 @@ Comments: <comments>
195
195
  Output the brief in the format specified in your instructions.
196
196
  ```
197
197
 
198
- The agent outputs a `thoughts/devtronic/brief.md` file with the 3-layer structure:
198
+ The agent outputs a `thoughts/auto-devtronic/brief.md` file with the 3-layer structure:
199
199
 
200
200
  ```markdown
201
201
  # Brief: <issue title>
@@ -255,11 +255,11 @@ the human review gate. Equivalent to running AFK mode for this one step only.
255
255
 
256
256
  Follow the same process as `/generate-tests`:
257
257
 
258
- Read `thoughts/devtronic/brief.md`, specifically the **Validation** layer, and generate failing tests that encode each acceptance criterion.
258
+ Read `thoughts/auto-devtronic/brief.md`, specifically the **Validation** layer, and generate failing tests that encode each acceptance criterion.
259
259
 
260
260
  Save to:
261
261
  - Test files in the appropriate test directory (detect from project structure)
262
- - `thoughts/devtronic/tests-manifest.md` — traceability: criterion → test name → file
262
+ - `thoughts/auto-devtronic/tests-manifest.md` — traceability: criterion → test name → file
263
263
 
264
264
  **Test naming convention**: `[feature].[criterion-slug].test.ts` or follow existing conventions.
265
265
 
@@ -293,10 +293,10 @@ Options:
293
293
  ## Step 4: Create Plan
294
294
 
295
295
  Follow the same process as `/create-plan`, using:
296
- - `thoughts/devtronic/brief.md` as the spec
297
- - `thoughts/devtronic/tests-manifest.md` as the DoD
296
+ - `thoughts/auto-devtronic/brief.md` as the spec
297
+ - `thoughts/auto-devtronic/tests-manifest.md` as the DoD
298
298
 
299
- Save plan to `thoughts/devtronic/plan.md`.
299
+ Save plan to `thoughts/auto-devtronic/plan.md`.
300
300
 
301
301
  The plan **must include**:
302
302
  - `## Task Dependencies` YAML block (required for parallel execution)
@@ -314,7 +314,7 @@ This is the RALPH core. Runs until tests pass or retries are exhausted.
314
314
  attempt = 1
315
315
  max_retries = N (from --max-retries, default 3)
316
316
  last_failure = null
317
- plan_path = thoughts/devtronic/plan.md
317
+ plan_path = thoughts/auto-devtronic/plan.md
318
318
  ```
319
319
 
320
320
  ### Loop body
@@ -327,7 +327,7 @@ WHILE attempt <= max_retries:
327
327
  Include last_failure context in subagent prompts (if attempt > 1).
328
328
 
329
329
  ── 5b. Run Quality Checks ──────────────────────────────
330
- Invoke the quality-runner agent:
330
+ Invoke the quality-executor agent:
331
331
  "Run all quality checks (typecheck, lint, test)"
332
332
 
333
333
  ── 5c. Evaluate Result ─────────────────────────────────
@@ -337,7 +337,7 @@ WHILE attempt <= max_retries:
337
337
  IF checks fail:
338
338
  last_failure = {
339
339
  attempt: N,
340
- output: <quality-runner output>,
340
+ output: <quality-executor output>,
341
341
  affected_files: <list from git diff>
342
342
  }
343
343
 
@@ -376,7 +376,7 @@ When retries are exhausted or analyst recommends escalating:
376
376
  ## devtronic: Cannot Self-Correct ⚠️
377
377
 
378
378
  **Attempts**: N / max_retries
379
- **Last failure**: [quality-runner output summary]
379
+ **Last failure**: [quality-executor output summary]
380
380
 
381
381
  **Failure analysis**:
382
382
  - Root cause: [description]
@@ -536,9 +536,9 @@ git stash list | grep "devtronic" && git stash pop
536
536
  | `path/to/file.ts` | Added / Modified |
537
537
 
538
538
  ### Session artifacts
539
- - Brief: `thoughts/devtronic/brief.md`
540
- - Tests manifest: `thoughts/devtronic/tests-manifest.md`
541
- - Plan: `thoughts/devtronic/plan.md`
539
+ - Brief: `thoughts/auto-devtronic/brief.md`
540
+ - Tests manifest: `thoughts/auto-devtronic/tests-manifest.md`
541
+ - Plan: `thoughts/auto-devtronic/plan.md`
542
542
  ```
543
543
 
544
544
  ---
@@ -608,4 +608,4 @@ If a subagent task fails due to conflicts:
608
608
  - **Requires devtronic core skills** — devtronic uses the same logic as `/generate-tests`, `/create-plan`, and `/execute-plan`. Those skills must be installed.
609
609
  - **Requires `gh` CLI** — authenticated with repo write access.
610
610
  - **AFK is not magic** — it reduces friction, not mistakes. Start with HITL on unfamiliar codebases.
611
- - **Session artifacts** — all intermediate files are saved to `thoughts/devtronic/`. Do not delete them until the PR is merged.
611
+ - **Session artifacts** — all intermediate files are saved to `thoughts/auto-devtronic/`. Do not delete them until the PR is merged.
@@ -7,9 +7,9 @@
7
7
  "files": {
8
8
  "skills": [
9
9
  "design-init",
10
- "design-review",
10
+ "design-critique",
11
11
  "design-refine",
12
- "design-system",
12
+ "design-tokens",
13
13
  "design-harden"
14
14
  ],
15
15
  "reference": [
@@ -1,7 +1,8 @@
1
1
  ---
2
- name: design-review
2
+ name: design-critique
3
3
  description: Design critique with AI slop detection — visual hierarchy, information architecture, emotional resonance, actionable report
4
4
  user-invokable: true
5
+ allowed-tools: Read, Glob, Grep
5
6
  ---
6
7
 
7
8
  # Design Review
@@ -2,6 +2,7 @@
2
2
  name: design-harden
3
3
  description: Production hardening — text overflow, i18n, error states, accessibility, responsive, edge cases with severity report
4
4
  user-invokable: true
5
+ allowed-tools: Read, Glob, Grep
5
6
  ---
6
7
 
7
8
  # Design Harden
@@ -2,6 +2,7 @@
2
2
  name: design-init
3
3
  description: One-time project design context setup — gathers visual direction, constraints, and writes Design Context to CLAUDE.md
4
4
  user-invokable: true
5
+ allowed-tools: Read, Write, Edit, Glob, Grep, AskUserQuestion
5
6
  ---
6
7
 
7
8
  # Design Init
@@ -2,6 +2,8 @@
2
2
  name: design-refine
3
3
  description: Directional design refinement — push the design bolder, quieter, more minimal, or more delightful
4
4
  user-invokable: true
5
+ allowed-tools: Read, Edit, Glob, Grep, AskUserQuestion
6
+ argument-hint: "--direction [bolder|quieter|minimal|delightful]"
5
7
  args:
6
8
  - name: direction
7
9
  description: "Refinement direction: bolder, quieter, minimal, delightful"
@@ -1,7 +1,9 @@
1
1
  ---
2
- name: design-system
2
+ name: design-tokens
3
3
  description: Design system extraction and normalization — find patterns or apply consistent tokens across the codebase
4
4
  user-invokable: true
5
+ allowed-tools: Read, Edit, Glob, Grep
6
+ argument-hint: "--mode [extract|normalize]"
5
7
  args:
6
8
  - name: mode
7
9
  description: "Mode: extract (find patterns and tokens) or normalize (apply system consistently)"
@@ -1,3 +1,7 @@
1
+ ---
2
+ alwaysApply: true
3
+ ---
4
+
1
5
  # Code Quality Checks
2
6
 
3
7
  After implementing a new feature or modifying existing code, **always run the following checks** before considering the task complete.
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:audit
2
+ name: audit
3
3
  description: "Comprehensive codebase audit (SonarQube lite): architecture, code smells, complexity, security, coverage, and technical debt."
4
4
  allowed-tools: Read, Grep, Glob, Bash, Task, Write, AskUserQuestion
5
5
  argument-hint: "[--architecture|--code|--complexity|--security|--quick|directory]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:backlog
2
+ name: backlog
3
3
  description: Manage the issue backlog. Add, prioritize, start work, complete, and cleanup items. Keeps the file manageable with automatic limits.
4
4
  allowed-tools: Read, Write, Edit, Glob, AskUserQuestion
5
5
  argument-hint: "[add|move|cleanup] [args]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:brief
2
+ name: brief
3
3
  description: Quick contextual briefing with pre-flight validation. Scans docs, code, git, and runs health checks before starting work.
4
4
  allowed-tools: Task, Glob, Grep, Read, Bash
5
5
  argument-hint: "[topic]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:briefing
2
+ name: briefing
3
3
  description: Pre-planning alignment Q&A. Generates targeted questions to clarify scope, style, priority and constraints before diving into implementation.
4
4
  allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
5
5
  argument-hint: "[topic]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:checkpoint
2
+ name: checkpoint
3
3
  description: Save current session progress for resumption. Creates a compact state document with what's done, what's pending, and how to continue.
4
4
  allowed-tools: Read, Write, Bash, Glob
5
5
  argument-hint: "[task-name]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:create-plan
2
+ name: create-plan
3
3
  description: Strategic planning for complex tasks. Default creates phased implementation plan. Use --detailed for task-level pseudocode breakdown.
4
4
  allowed-tools: Read, Grep, Glob, Bash, AskUserQuestion, Write
5
5
  argument-hint: "[feature] [--detailed|--from-spec]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:create-skill
2
+ name: create-skill
3
3
  description: Meta skill to create new skills. Guides through defining purpose, workflow steps, tools, and generates the skill file.
4
4
  allowed-tools: AskUserQuestion, Write, Read, Glob
5
5
  argument-hint: "[skill-name]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design
2
+ name: design
3
3
  description: Orchestrates the design phase. Detects context and delegates to the right sub-skill.
4
4
  allowed-tools: Task, Read, Glob, AskUserQuestion, Write
5
5
  argument-hint: "[--research|--define|--ia|--wireframe|--system|--audit|--review|--spec]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-audit
2
+ name: design-audit
3
3
  description: UX audit — evaluates designs against Nielsen's 10 heuristics and WCAG 2.1 AA accessibility. Consolidates findings with severity.
4
4
  allowed-tools: Task, Read, Glob, Write, Bash
5
5
  argument-hint: "[--wireframes|--code|--both]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-define
2
+ name: design-define
3
3
  description: Synthesis phase — generates personas, user journey maps, and HMW problem statements from research.
4
4
  allowed-tools: Task, Read, Write, AskUserQuestion
5
5
  argument-hint: "[topic]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-ia
2
+ name: design-ia
3
3
  description: Information architecture phase — defines navigation structure, sitemap, and user flows from personas and journeys.
4
4
  allowed-tools: Task, Read, Write, AskUserQuestion
5
5
  argument-hint: "[scope]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-research
2
+ name: design-research
3
3
  description: Discovery phase — synthesizes competitive analysis, target audience, and business context into a research document.
4
4
  allowed-tools: Task, Read, Glob, AskUserQuestion, Write, WebFetch
5
5
  argument-hint: "[topic]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-review
2
+ name: design-review
3
3
  description: QA visual review — compares implementation against wireframe specs and design system. Surfaces deviations with severity.
4
4
  allowed-tools: Task, Read, Glob, Bash, Write
5
5
  argument-hint: "[component-name|--all]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-spec
2
+ name: design-spec
3
3
  description: Generates a developer-ready design specification from design artifacts. Bridges design phase and implementation planning.
4
4
  allowed-tools: Task, Read, Write, Glob
5
5
  argument-hint: "[screen-name|--all]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-system
2
+ name: design-system
3
3
  description: Design system router — delegates to define, audit, or sync based on flag. Manages design tokens, components, and style guide lifecycle.
4
4
  allowed-tools: Task, AskUserQuestion
5
5
  argument-hint: "[--define|--audit|--sync]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-system-audit
2
+ name: design-system-audit
3
3
  description: Audits the codebase for design system drift — finds hardcoded values, unused tokens, and components that bypass the system.
4
4
  allowed-tools: Task, Read, Glob, Grep, Write, Bash
5
5
  argument-hint: "[--files path/to/dir]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-system-define
2
+ name: design-system-define
3
3
  description: Creates or extracts a design system — tokens, components, and style guide — persisted to thoughts/design/design-system.md.
4
4
  allowed-tools: Task, Read, Write, Edit, AskUserQuestion, Bash, Glob
5
5
  argument-hint: "[--extract]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-system-sync
2
+ name: design-system-sync
3
3
  description: Syncs design tokens from thoughts/design/design-system.md to project config files (Tailwind, CSS vars, tokens.json).
4
4
  allowed-tools: Task, Read, Write, Edit, Glob, Bash, AskUserQuestion
5
5
  argument-hint: "[--dry-run]"
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: devtronic:design-wireframe
2
+ name: design-wireframe
3
3
  description: Wireframe specification phase — generates structured text-based wireframe specs per screen. Tool-agnostic. Reads IA and define artifacts.
4
4
  allowed-tools: Task, Read, Write, AskUserQuestion
5
5
  argument-hint: "[screen-name|--all]"