liteagents 2.8.3 → 2.10.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/CHANGELOG.md +51 -0
- package/README.md +25 -31
- package/installer/cli.js +6 -2
- package/package.json +3 -3
- package/packages/ampcode/AGENT.md +9 -15
- package/packages/ampcode/agents/code-developer.md +11 -12
- package/packages/ampcode/agents/quality-assurance.md +1 -1
- package/packages/{droid/commands/systematic-debugging.md → ampcode/commands/debug-method.md} +9 -9
- package/packages/ampcode/commands/diff-review.md +78 -0
- package/packages/ampcode/commands/friction/friction.js +348 -122
- package/packages/ampcode/commands/optimize.md +45 -4
- package/packages/ampcode/commands/refactor.md +33 -1
- package/packages/ampcode/commands/remember.md +107 -46
- package/packages/ampcode/commands/security.md +28 -1
- package/packages/ampcode/commands/stash.md +7 -0
- package/packages/{droid/commands/test-driven-development.md → ampcode/commands/tdd-flow.md} +2 -2
- package/packages/ampcode/commands/test-generate.md +64 -15
- package/packages/{opencode/command/testing-anti-patterns.md → ampcode/commands/test-traps.md} +77 -3
- package/packages/{droid/commands/root-cause-tracing.md → ampcode/commands/trace-back.md} +3 -3
- package/packages/ampcode/commands/{verification-before-completion.md → verify-done.md} +3 -3
- package/packages/claude/CLAUDE.md +9 -15
- package/packages/claude/agents/code-developer.md +11 -12
- package/packages/claude/agents/quality-assurance.md +1 -1
- package/packages/claude/commands/diff-review.md +78 -0
- package/packages/claude/commands/friction/friction.js +348 -122
- package/packages/claude/commands/optimize.md +45 -4
- package/packages/claude/commands/refactor.md +33 -1
- package/packages/claude/commands/remember.md +107 -46
- package/packages/claude/commands/security.md +28 -1
- package/packages/claude/commands/stash.md +7 -0
- package/packages/claude/commands/test-generate.md +64 -15
- package/packages/claude/plugins/live-canvas-marketplace/plugins/live-canvas-channel/package-lock.json +3 -3
- package/packages/claude/skills/{systematic-debugging → debug-method}/CREATION-LOG.md +1 -1
- package/packages/claude/skills/{systematic-debugging → debug-method}/SKILL.md +9 -9
- package/packages/claude/skills/{systematic-debugging → debug-method}/test-academic.md +1 -1
- package/packages/claude/skills/{systematic-debugging → debug-method}/test-pressure-1.md +1 -1
- package/packages/claude/skills/{systematic-debugging → debug-method}/test-pressure-2.md +1 -1
- package/packages/claude/skills/{systematic-debugging → debug-method}/test-pressure-3.md +1 -1
- package/packages/claude/skills/{test-driven-development → tdd-flow}/SKILL.md +3 -3
- package/packages/claude/skills/{testing-anti-patterns → test-traps}/SKILL.md +77 -3
- package/packages/claude/skills/{root-cause-tracing → trace-back}/SKILL.md +3 -3
- package/packages/claude/skills/{verification-before-completion → verify-done}/SKILL.md +3 -3
- package/packages/droid/AGENTS.md +8 -14
- package/packages/{opencode/command/systematic-debugging.md → droid/commands/debug-method.md} +9 -9
- package/packages/droid/commands/diff-review.md +78 -0
- package/packages/droid/commands/friction/friction.js +348 -122
- package/packages/droid/commands/optimize.md +45 -4
- package/packages/droid/commands/refactor.md +33 -1
- package/packages/droid/commands/remember.md +107 -46
- package/packages/droid/commands/security.md +28 -1
- package/packages/droid/commands/stash.md +7 -0
- package/packages/{opencode/command/test-driven-development.md → droid/commands/tdd-flow.md} +2 -2
- package/packages/droid/commands/test-generate.md +64 -15
- package/packages/droid/commands/{testing-anti-patterns.md → test-traps.md} +77 -3
- package/packages/{opencode/command/root-cause-tracing.md → droid/commands/trace-back.md} +3 -3
- package/packages/droid/commands/{verification-before-completion.md → verify-done.md} +3 -3
- package/packages/droid/droids/code-developer.md +11 -12
- package/packages/droid/droids/quality-assurance.md +1 -1
- package/packages/opencode/AGENTS.md +8 -14
- package/packages/opencode/agent/code-developer.md +11 -12
- package/packages/opencode/agent/quality-assurance.md +1 -1
- package/packages/{ampcode/commands/systematic-debugging.md → opencode/command/debug-method.md} +9 -9
- package/packages/opencode/command/diff-review.md +78 -0
- package/packages/opencode/command/friction/friction.js +348 -122
- package/packages/opencode/command/optimize.md +45 -4
- package/packages/opencode/command/refactor.md +33 -1
- package/packages/opencode/command/remember.md +107 -46
- package/packages/opencode/command/security.md +28 -1
- package/packages/opencode/command/stash.md +7 -0
- package/packages/{ampcode/commands/test-driven-development.md → opencode/command/tdd-flow.md} +2 -2
- package/packages/opencode/command/test-generate.md +64 -15
- package/packages/{ampcode/commands/testing-anti-patterns.md → opencode/command/test-traps.md} +77 -3
- package/packages/{ampcode/commands/root-cause-tracing.md → opencode/command/trace-back.md} +3 -3
- package/packages/opencode/command/{verification-before-completion.md → verify-done.md} +3 -3
- package/packages/opencode/opencode.jsonc +13 -37
- package/packages/subagentic-manual.md +55 -51
- package/packages/ampcode/commands/code-review.md +0 -107
- package/packages/ampcode/commands/condition-based-waiting.md +0 -122
- package/packages/ampcode/commands/debug.md +0 -20
- package/packages/ampcode/commands/explain.md +0 -18
- package/packages/ampcode/commands/friction.md +0 -139
- package/packages/ampcode/commands/git-commit.md +0 -14
- package/packages/ampcode/commands/review.md +0 -18
- package/packages/claude/commands/debug.md +0 -20
- package/packages/claude/commands/explain.md +0 -18
- package/packages/claude/commands/friction.md +0 -139
- package/packages/claude/commands/git-commit.md +0 -14
- package/packages/claude/commands/review.md +0 -18
- package/packages/claude/skills/code-review/SKILL.md +0 -107
- package/packages/claude/skills/code-review/code-reviewer.md +0 -146
- package/packages/claude/skills/condition-based-waiting/SKILL.md +0 -122
- package/packages/droid/commands/code-review.md +0 -107
- package/packages/droid/commands/condition-based-waiting.md +0 -122
- package/packages/droid/commands/debug.md +0 -20
- package/packages/droid/commands/explain.md +0 -18
- package/packages/droid/commands/friction.md +0 -139
- package/packages/droid/commands/git-commit.md +0 -14
- package/packages/droid/commands/review.md +0 -18
- package/packages/opencode/command/code-review.md +0 -107
- package/packages/opencode/command/condition-based-waiting.md +0 -122
- package/packages/opencode/command/debug.md +0 -20
- package/packages/opencode/command/explain.md +0 -18
- package/packages/opencode/command/friction.md +0 -139
- package/packages/opencode/command/git-commit.md +0 -14
- package/packages/opencode/command/review.md +0 -18
- /package/packages/ampcode/commands/{condition-based-waiting → test-traps}/example.ts +0 -0
- /package/packages/ampcode/commands/{root-cause-tracing → trace-back}/find-polluter.sh +0 -0
- /package/packages/claude/skills/{condition-based-waiting → test-traps}/example.ts +0 -0
- /package/packages/claude/skills/{root-cause-tracing → trace-back}/find-polluter.sh +0 -0
- /package/packages/droid/commands/{condition-based-waiting → test-traps}/example.ts +0 -0
- /package/packages/droid/commands/{root-cause-tracing → trace-back}/find-polluter.sh +0 -0
- /package/packages/opencode/command/{condition-based-waiting → test-traps}/example.ts +0 -0
- /package/packages/opencode/command/{root-cause-tracing → trace-back}/find-polluter.sh +0 -0
|
@@ -22,38 +22,32 @@ These subagents are available when using Claude Code CLI. Droid can reference th
|
|
|
22
22
|
| system-architect | Architect | Use for system design, architecture documents, technology selection, API design, and infrastructure planning |
|
|
23
23
|
| ui-designer | UX Expert | Use for UI/UX design, wireframes, prototypes, front-end specifications, and user experience optimization |
|
|
24
24
|
|
|
25
|
-
### Skills (
|
|
25
|
+
### Skills (9 total)
|
|
26
26
|
|
|
27
27
|
| ID | Description | Usage | Auto |
|
|
28
28
|
|---|---|---|---|
|
|
29
29
|
| brainstorming | Refines rough ideas into fully-formed designs through collaborative questioning | /brainstorming <session-type> <topic> | false |
|
|
30
|
-
| code-review | Reviews implementation against plan or requirements before proceeding | /code-review <review-scope> <focus-areas> | false |
|
|
31
|
-
| condition-based-waiting | Replaces arbitrary timeouts with condition polling to wait for actual state changes | /condition-based-waiting <condition-type> <timeout-specs> | false |
|
|
32
30
|
| docs-builder | Create comprehensive project documentation with structured /docs hierarchy | /docs-builder | false |
|
|
33
|
-
|
|
|
31
|
+
| trace-back | Systematically traces bugs backward through call stack to identify source | /trace-back <issue-description> | false |
|
|
34
32
|
| live-canvas | Conduct design interviews, generate UI variations, collect live click-to-annotate feedback via a browser overlay that streams into the session | /live-canvas | false |
|
|
35
33
|
| skill-creator | Guide for creating effective skills and extending Claude capabilities | /skill-creator <skill-type> <skill-description> | false |
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
34
|
+
| debug-method | Four-phase debugging framework - investigate root cause before any fixes | /debug-method <bug-or-error-description> | false |
|
|
35
|
+
| tdd-flow | Write test first, watch it fail, write minimal code to pass | /tdd-flow <feature-or-behavior-to-test> | true |
|
|
36
|
+
| test-traps | Prevents testing mock behavior and production pollution with test-only methods | /test-traps <testing-scenario> | true |
|
|
37
|
+
| verify-done | Requires running verification commands before making any success claims | /verify-done <work-to-verify> | true |
|
|
40
38
|
|
|
41
|
-
### Commands (
|
|
39
|
+
### Commands (8 total)
|
|
42
40
|
|
|
43
41
|
| ID | Description | Usage |
|
|
44
42
|
|---|---|---|
|
|
45
|
-
| debug | Debug an issue systematically using structured investigation techniques | /debug <issue-description> |
|
|
46
|
-
| explain | Explain code for someone new to the codebase | /explain <code-section> |
|
|
47
|
-
| friction | Analyze session logs for failure patterns and behavioral signals | /friction <sessions-path> |
|
|
48
|
-
| git-commit | Analyze changes and create intelligent git commits | /git-commit |
|
|
49
43
|
| optimize | Analyze and optimize performance issues | /optimize <target-area> |
|
|
50
44
|
| refactor | Refactor code while maintaining behavior and tests | /refactor <code-section> |
|
|
51
45
|
| remember | Consolidate stashes + friction into project memory | /remember |
|
|
52
|
-
| review | Comprehensive code review including quality, tests, and architecture | /review |
|
|
46
|
+
| diff-review | Comprehensive code review including quality, tests, and architecture | /diff-review |
|
|
53
47
|
| security | Security vulnerability scan and analysis | /security |
|
|
54
48
|
| ship | Pre-deployment verification checklist | /ship |
|
|
55
49
|
| stash | Save session context for compaction recovery or handoffs | /stash ["optional-name"] |
|
|
56
|
-
| test-generate | Generate
|
|
50
|
+
| test-generate | Generate tests, run them, verify each one actually exercises the code | /test-generate <file> |
|
|
57
51
|
|
|
58
52
|
All resources are auto-discovered from frontmatter in their respective directories:
|
|
59
53
|
- **Agents**: `./agents/*.md`
|
|
@@ -41,7 +41,7 @@ digraph CodeDeveloper {
|
|
|
41
41
|
context_discovery [label="Context Discovery\n(search related code,\ndeps, usages)", fillcolor=lightyellow];
|
|
42
42
|
|
|
43
43
|
// Debug path
|
|
44
|
-
use_debug [label="Use /
|
|
44
|
+
use_debug [label="Use /debug-method\nor /trace-back"];
|
|
45
45
|
|
|
46
46
|
// Refactor path
|
|
47
47
|
use_refactor [label="Use /refactor"];
|
|
@@ -54,12 +54,12 @@ digraph CodeDeveloper {
|
|
|
54
54
|
|
|
55
55
|
// Conditional testing
|
|
56
56
|
tdd_needed [label="TDD specified\nor tests needed?", shape=diamond];
|
|
57
|
-
use_tdd [label="Use /
|
|
57
|
+
use_tdd [label="Use /tdd-flow\nor /test-generate"];
|
|
58
58
|
|
|
59
59
|
// Validation
|
|
60
60
|
run_validations [label="Run validations\n(lint, build, tests)"];
|
|
61
61
|
validations_pass [label="Pass?", shape=diamond];
|
|
62
|
-
fix_issues [label="Fix issues\n(use /debug if needed)"];
|
|
62
|
+
fix_issues [label="Fix issues\n(use /debug-method if needed)"];
|
|
63
63
|
failure_count [label="3+ failures?", shape=diamond];
|
|
64
64
|
|
|
65
65
|
// Security check
|
|
@@ -75,8 +75,8 @@ digraph CodeDeveloper {
|
|
|
75
75
|
regression_fixable [label="Fixable?", shape=diamond];
|
|
76
76
|
|
|
77
77
|
// Review and complete
|
|
78
|
-
code_review [label="Run /
|
|
79
|
-
verification [label="Run /
|
|
78
|
+
code_review [label="Run /diff-review"];
|
|
79
|
+
verification [label="Run /verify-done", fillcolor=orange];
|
|
80
80
|
|
|
81
81
|
// Story-specific
|
|
82
82
|
update_story [label="Update story\n(checkbox, changelog)"];
|
|
@@ -184,15 +184,14 @@ All require `*` prefix. Invocation commands in table above. Additional:
|
|
|
184
184
|
|
|
185
185
|
| Situation | Delegate To |
|
|
186
186
|
|-----------|-------------|
|
|
187
|
-
| Bug encountered | `/
|
|
188
|
-
| Error deep in stack | `/
|
|
187
|
+
| Bug encountered | `/debug-method` (use `/trace-back` when the error is deep in the stack) |
|
|
188
|
+
| Error deep in stack | `/trace-back` |
|
|
189
189
|
| Refactoring code | `/refactor` |
|
|
190
|
-
| Need tests (when required) | `/test-generate` or `/
|
|
191
|
-
| Writing any test | `/
|
|
192
|
-
| Before completion | `/
|
|
190
|
+
| Need tests (when required) | `/test-generate` or `/tdd-flow` |
|
|
191
|
+
| Writing any test | `/test-traps` (avoid mocks, production pollution) |
|
|
192
|
+
| Before completion | `/verify-done` |
|
|
193
193
|
| After code changes | `/security` |
|
|
194
|
-
| Task complete
|
|
195
|
-
| General code review | `/review` (comprehensive quality check) |
|
|
194
|
+
| Task complete / general review | `/diff-review` (diffs branch or staged changes, verifies, fixes confirmed issues, asks on ambiguous ones) |
|
|
196
195
|
| Performance issues | `/optimize` |
|
|
197
196
|
|
|
198
197
|
You are an autonomous implementation specialist. Execute with precision, delegate appropriately, and communicate clearly when you need guidance or encounter blockers.
|
|
@@ -65,7 +65,7 @@ Before any analysis, read (if exists):
|
|
|
65
65
|
|
|
66
66
|
## Slash Commands Available
|
|
67
67
|
|
|
68
|
-
Use these during analysis: `/
|
|
68
|
+
Use these during analysis: `/diff-review`, `/security`, `/verify-done`
|
|
69
69
|
|
|
70
70
|
## Analysis Areas
|
|
71
71
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: diff-review
|
|
3
|
+
description: Review diff [file, branch, or range]
|
|
4
|
+
usage: /diff-review
|
|
5
|
+
argument-hint: [file, branch (e.g. main), range (main..HEAD), or empty]
|
|
6
|
+
allowed-tools: Read, Edit, Grep, Glob, Bash(git diff:*), Bash(git log:*), Bash(git show:*), Bash(git status:*), Bash(git grep:*), Bash(git rev-parse:*), Bash(git merge-base:*), Bash(rg:*)
|
|
7
|
+
---
|
|
8
|
+
Review $ARGUMENTS. Interpret in this order:
|
|
9
|
+
1. **Empty** → staged diff (`git diff --staged`); if empty, working-tree diff
|
|
10
|
+
(`git diff`).
|
|
11
|
+
2. **A range** like `main..HEAD` or `origin/main...HEAD` → `git diff <range>`.
|
|
12
|
+
3. **A single ref** (branch / tag / SHA — confirm with `git rev-parse
|
|
13
|
+
--verify`) → diff that ref's merge-base against `HEAD` (i.e. everything on
|
|
14
|
+
the current branch since it diverged: `git diff $(git merge-base <ref>
|
|
15
|
+
HEAD)..HEAD`). This is the common "review my branch before merging" path.
|
|
16
|
+
4. **A file or directory path** → that target.
|
|
17
|
+
5. Otherwise → ask.
|
|
18
|
+
|
|
19
|
+
The diff is the subject; widen to surrounding code only as needed to judge a
|
|
20
|
+
hunk. For multi-commit ranges, also skim `git log <range>` to understand
|
|
21
|
+
intent before judging.
|
|
22
|
+
|
|
23
|
+
## Check For
|
|
24
|
+
- **Bugs needing a fix.** Logic errors, off-by-one, null/undefined paths,
|
|
25
|
+
races, wrong defaults, broken edge cases. Concrete failure modes only — not
|
|
26
|
+
vibes.
|
|
27
|
+
- **Dead code.** Unreferenced functions / vars / imports / params, unreachable
|
|
28
|
+
branches, commented-out blocks, legacy paths the diff just obsoleted.
|
|
29
|
+
`git grep` the symbol before flagging — easy to be wrong.
|
|
30
|
+
- **Loose ends.** TODO / FIXME / XXX added by this diff, half-finished
|
|
31
|
+
branches, silently swallowed errors, stub bodies, mocked-out paths,
|
|
32
|
+
"temporary" names, abandoned feature flags.
|
|
33
|
+
- **Correctness.** Edge cases, error handling, type / contract violations,
|
|
34
|
+
broken invariants.
|
|
35
|
+
- **Security.** OWASP Top 10, auth, data exposure. (`/security` for depth.)
|
|
36
|
+
- **Performance.** N+1, blocking calls in hot paths, unbounded loops, indexes
|
|
37
|
+
the diff actually touches.
|
|
38
|
+
- **Maintainability.** Complexity, naming, duplication — only when material.
|
|
39
|
+
|
|
40
|
+
## Output Format
|
|
41
|
+
### 🚨 Critical (blocks merge)
|
|
42
|
+
### ⚠️ Warnings (should fix)
|
|
43
|
+
### 💡 Suggestions (nice to have)
|
|
44
|
+
|
|
45
|
+
Each finding: **Location** (`file:line`), **What's wrong**, **Why it matters**,
|
|
46
|
+
**Concrete fix** — not "consider improving".
|
|
47
|
+
|
|
48
|
+
## After the review — verify, then fix
|
|
49
|
+
|
|
50
|
+
Findings are claims, not facts. Validate before acting; validate again after.
|
|
51
|
+
|
|
52
|
+
**Verify each claim.** Re-read the cited `file:line` in context. For
|
|
53
|
+
dead-code or unused-symbol claims, `git grep` the name across the repo before
|
|
54
|
+
trusting it. Mark each **confirmed**, **false positive** (with reason), or
|
|
55
|
+
**uncertain**.
|
|
56
|
+
|
|
57
|
+
**Fix what's confirmed and unambiguous** — minimal shape, one obvious way, no
|
|
58
|
+
change to a public API / response / caller contract. Apply directly. After
|
|
59
|
+
each edit, re-read the changed region and confirm it does what you intended
|
|
60
|
+
without breaking nearby logic. A fix isn't done until you've grounded it the
|
|
61
|
+
same way you grounded the claim.
|
|
62
|
+
|
|
63
|
+
**Stop and ask** when any of these hold (HITL gates — not all the time, only
|
|
64
|
+
here):
|
|
65
|
+
- the finding is **uncertain** after grounding,
|
|
66
|
+
- the fix has **multiple reasonable shapes** (e.g. delete-vs-keep-behind-flag,
|
|
67
|
+
extract-vs-inline, patch-vs-rewrite) — present options with tradeoffs, not a
|
|
68
|
+
chosen path,
|
|
69
|
+
- it **affects downstream** (signatures, response shape, schema, any caller
|
|
70
|
+
contract) or removes a public/exported symbol, or
|
|
71
|
+
- the "dead code" looks intentionally kept (stub for upcoming work, framework
|
|
72
|
+
hook, documented extension point) — confirm before deleting.
|
|
73
|
+
|
|
74
|
+
Final report: **confirmed-and-fixed** · **confirmed-but-asking** (why +
|
|
75
|
+
options) · **false-positive** (why) · **uncertain** (what's needed to decide).
|
|
76
|
+
|
|
77
|
+
End with a one-line verdict: **Ready to merge? Yes / No / With fixes** — and
|
|
78
|
+
the reason in a sentence.
|