@bradtaylorsf/alpha-loop 1.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/LICENSE +21 -0
- package/README.md +294 -0
- package/agents/implementer.md +30 -0
- package/agents/reviewer.md +29 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +57 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/auth.d.ts +1 -0
- package/dist/commands/auth.js +89 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/history.d.ts +8 -0
- package/dist/commands/history.js +185 -0
- package/dist/commands/history.js.map +1 -0
- package/dist/commands/init.d.ts +1 -0
- package/dist/commands/init.js +241 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/run.d.ts +15 -0
- package/dist/commands/run.js +321 -0
- package/dist/commands/run.js.map +1 -0
- package/dist/commands/scan.d.ts +1 -0
- package/dist/commands/scan.js +50 -0
- package/dist/commands/scan.js.map +1 -0
- package/dist/commands/sync.d.ts +20 -0
- package/dist/commands/sync.js +149 -0
- package/dist/commands/sync.js.map +1 -0
- package/dist/commands/vision.d.ts +1 -0
- package/dist/commands/vision.js +194 -0
- package/dist/commands/vision.js.map +1 -0
- package/dist/engine/agents.d.ts +41 -0
- package/dist/engine/agents.js +90 -0
- package/dist/engine/agents.js.map +1 -0
- package/dist/engine/config.d.ts +71 -0
- package/dist/engine/config.js +73 -0
- package/dist/engine/config.js.map +1 -0
- package/dist/engine/prerequisites.d.ts +34 -0
- package/dist/engine/prerequisites.js +90 -0
- package/dist/engine/prerequisites.js.map +1 -0
- package/dist/lib/agent.d.ts +25 -0
- package/dist/lib/agent.js +97 -0
- package/dist/lib/agent.js.map +1 -0
- package/dist/lib/config.d.ts +35 -0
- package/dist/lib/config.js +179 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/context.d.ts +17 -0
- package/dist/lib/context.js +96 -0
- package/dist/lib/context.js.map +1 -0
- package/dist/lib/github.d.ts +61 -0
- package/dist/lib/github.js +313 -0
- package/dist/lib/github.js.map +1 -0
- package/dist/lib/learning.d.ts +43 -0
- package/dist/lib/learning.js +207 -0
- package/dist/lib/learning.js.map +1 -0
- package/dist/lib/logger.d.ts +9 -0
- package/dist/lib/logger.js +28 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/pipeline.d.ts +18 -0
- package/dist/lib/pipeline.js +456 -0
- package/dist/lib/pipeline.js.map +1 -0
- package/dist/lib/preflight.d.ts +33 -0
- package/dist/lib/preflight.js +123 -0
- package/dist/lib/preflight.js.map +1 -0
- package/dist/lib/prerequisites.d.ts +12 -0
- package/dist/lib/prerequisites.js +54 -0
- package/dist/lib/prerequisites.js.map +1 -0
- package/dist/lib/prompts.d.ts +44 -0
- package/dist/lib/prompts.js +102 -0
- package/dist/lib/prompts.js.map +1 -0
- package/dist/lib/session.d.ts +28 -0
- package/dist/lib/session.js +173 -0
- package/dist/lib/session.js.map +1 -0
- package/dist/lib/shell.d.ts +32 -0
- package/dist/lib/shell.js +95 -0
- package/dist/lib/shell.js.map +1 -0
- package/dist/lib/testing.d.ts +10 -0
- package/dist/lib/testing.js +51 -0
- package/dist/lib/testing.js.map +1 -0
- package/dist/lib/verify.d.ts +18 -0
- package/dist/lib/verify.js +235 -0
- package/dist/lib/verify.js.map +1 -0
- package/dist/lib/vision.d.ts +9 -0
- package/dist/lib/vision.js +21 -0
- package/dist/lib/vision.js.map +1 -0
- package/dist/lib/worktree.d.ts +29 -0
- package/dist/lib/worktree.js +153 -0
- package/dist/lib/worktree.js.map +1 -0
- package/package.json +63 -0
- package/templates/agents/implementer.md +34 -0
- package/templates/agents/reviewer.md +48 -0
- package/templates/skills/code-review/SKILL.md +58 -0
- package/templates/skills/git-workflow/SKILL.md +53 -0
- package/templates/skills/implementation-planning/SKILL.md +64 -0
- package/templates/skills/security-analysis/SKILL.md +560 -0
- package/templates/skills/security-analysis/scripts/security-scanner.sh +227 -0
- package/templates/skills/test-robustness/SKILL.md +897 -0
- package/templates/skills/testing-patterns/SKILL.md +75 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: Code review standards for automated and manual reviews. Use when reviewing code changes.
|
|
4
|
+
auto_load: true
|
|
5
|
+
priority: high
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Code Review Skill
|
|
9
|
+
|
|
10
|
+
## Trigger
|
|
11
|
+
When reviewing code changes (PR review, post-implementation review).
|
|
12
|
+
|
|
13
|
+
## Review Checklist
|
|
14
|
+
|
|
15
|
+
### 1. Requirements Compliance
|
|
16
|
+
- [ ] All acceptance criteria met
|
|
17
|
+
- [ ] No scope creep (unnecessary changes)
|
|
18
|
+
- [ ] Edge cases handled
|
|
19
|
+
|
|
20
|
+
### 2. Code Quality
|
|
21
|
+
- [ ] Follows project conventions (check CLAUDE.md)
|
|
22
|
+
- [ ] No `any` types in TypeScript
|
|
23
|
+
- [ ] Functions are small and focused
|
|
24
|
+
- [ ] No dead code or commented-out code
|
|
25
|
+
- [ ] No `console.log` left in production code
|
|
26
|
+
|
|
27
|
+
### 3. Security (OWASP Top 10)
|
|
28
|
+
- [ ] No SQL injection (use parameterized queries)
|
|
29
|
+
- [ ] No XSS (sanitize user input)
|
|
30
|
+
- [ ] No command injection (validate shell args)
|
|
31
|
+
- [ ] Auth/authz checks in place
|
|
32
|
+
- [ ] No secrets in code
|
|
33
|
+
|
|
34
|
+
### 4. Testing
|
|
35
|
+
- [ ] New code has tests
|
|
36
|
+
- [ ] Tests cover happy path AND error cases
|
|
37
|
+
- [ ] Tests are deterministic (no flaky tests)
|
|
38
|
+
- [ ] Test names describe behavior, not implementation
|
|
39
|
+
|
|
40
|
+
### 5. Performance
|
|
41
|
+
- [ ] No N+1 queries
|
|
42
|
+
- [ ] No unnecessary re-renders
|
|
43
|
+
- [ ] Large lists paginated
|
|
44
|
+
|
|
45
|
+
## Action on Findings
|
|
46
|
+
|
|
47
|
+
- **CRITICAL**: Fix immediately before merge
|
|
48
|
+
- **WARNING**: Fix now if possible, create issue if not
|
|
49
|
+
- **SUGGESTION**: Note for future improvement
|
|
50
|
+
|
|
51
|
+
## Output Format
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
### Review Summary
|
|
55
|
+
**Status**: PASS | FAIL
|
|
56
|
+
**Issues fixed**: N
|
|
57
|
+
**Issues deferred**: N (with issue links)
|
|
58
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-workflow
|
|
3
|
+
description: Git branch naming, commit conventions, and PR workflow. Use for all git operations.
|
|
4
|
+
auto_load: true
|
|
5
|
+
priority: high
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Git Workflow Skill
|
|
9
|
+
|
|
10
|
+
## Trigger
|
|
11
|
+
When creating branches, writing commits, or creating PRs.
|
|
12
|
+
|
|
13
|
+
## Branch Naming
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
agent/issue-{number} # automated loop branches
|
|
17
|
+
feat/{description} # feature branches
|
|
18
|
+
fix/{description} # bug fix branches
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Commit Conventions
|
|
22
|
+
|
|
23
|
+
Use conventional commits:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
feat: add health check endpoint (closes #1)
|
|
27
|
+
fix: resolve test failures for #3
|
|
28
|
+
test: add unit tests for runner module
|
|
29
|
+
refactor: simplify prompt building
|
|
30
|
+
docs: update CLAUDE.md with new skills
|
|
31
|
+
chore: update dependencies
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Rules:
|
|
35
|
+
- Lowercase, no period at end
|
|
36
|
+
- Reference issue number when applicable
|
|
37
|
+
- One logical change per commit
|
|
38
|
+
- Commit message explains WHY, diff shows WHAT
|
|
39
|
+
|
|
40
|
+
## PR Workflow
|
|
41
|
+
|
|
42
|
+
1. Branch from the target branch (master or session branch)
|
|
43
|
+
2. Implement + test + commit
|
|
44
|
+
3. Push branch
|
|
45
|
+
4. Create PR with: summary, test results, review report
|
|
46
|
+
5. Link PR to issue with `closes #N`
|
|
47
|
+
|
|
48
|
+
## Never Do
|
|
49
|
+
|
|
50
|
+
- Force push to master/main
|
|
51
|
+
- Commit directly to master/main
|
|
52
|
+
- Commit .env files or secrets
|
|
53
|
+
- Create merge commits (use squash merge)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implementation-planning
|
|
3
|
+
description: Two-layer feature planning (business + technical). Use when planning any feature before implementation starts.
|
|
4
|
+
auto_load: true
|
|
5
|
+
priority: high
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Implementation Planning Skill
|
|
9
|
+
|
|
10
|
+
## Trigger
|
|
11
|
+
When planning a feature before implementation starts.
|
|
12
|
+
|
|
13
|
+
## Rules
|
|
14
|
+
|
|
15
|
+
### Two-Layer Approach
|
|
16
|
+
|
|
17
|
+
Every feature plan has two layers:
|
|
18
|
+
|
|
19
|
+
**Layer A: Non-Technical Summary**
|
|
20
|
+
- What are we building?
|
|
21
|
+
- Who benefits?
|
|
22
|
+
- What's the impact?
|
|
23
|
+
|
|
24
|
+
**Layer B: Technical Detail**
|
|
25
|
+
- What components/modules?
|
|
26
|
+
- What database changes?
|
|
27
|
+
- What API endpoints?
|
|
28
|
+
- What will be tested?
|
|
29
|
+
|
|
30
|
+
### Acceptance Criteria
|
|
31
|
+
|
|
32
|
+
Make them specific and testable:
|
|
33
|
+
|
|
34
|
+
Good:
|
|
35
|
+
```
|
|
36
|
+
- [ ] User can select a coach from a list
|
|
37
|
+
- [ ] System prevents booking overlapping sessions
|
|
38
|
+
- [ ] All tests pass
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Bad:
|
|
42
|
+
```
|
|
43
|
+
- [ ] Booking system works
|
|
44
|
+
- [ ] It's fast
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Feature Breakdown
|
|
48
|
+
|
|
49
|
+
Break large features into smaller issues:
|
|
50
|
+
- One feature per issue (small, scoped)
|
|
51
|
+
- XS (< 4h), S (4-8h), M (8-16h), L (16-32h)
|
|
52
|
+
- Identify dependencies between issues
|
|
53
|
+
|
|
54
|
+
### Red Flags
|
|
55
|
+
|
|
56
|
+
**Blocker:**
|
|
57
|
+
- Acceptance criteria vague or untestable
|
|
58
|
+
- Technical approach missing
|
|
59
|
+
- Feature too large for one sprint
|
|
60
|
+
|
|
61
|
+
**Warning:**
|
|
62
|
+
- Dependencies not identified
|
|
63
|
+
- No test plan
|
|
64
|
+
- High-risk approach without discussion
|