@codyswann/lisa 1.12.9 → 1.14.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.
Files changed (85) hide show
  1. package/all/copy-overwrite/.claude/commands/git/commit-and-submit-pr.md +2 -3
  2. package/all/copy-overwrite/.claude/commands/git/commit.md +2 -43
  3. package/all/copy-overwrite/.claude/commands/git/prune.md +2 -30
  4. package/all/copy-overwrite/.claude/commands/git/submit-pr.md +2 -45
  5. package/all/copy-overwrite/.claude/commands/jira/create.md +2 -45
  6. package/all/copy-overwrite/.claude/commands/jira/verify.md +2 -29
  7. package/all/copy-overwrite/.claude/commands/lisa/review-implementation.md +4 -206
  8. package/all/copy-overwrite/.claude/commands/project/add-test-coverage.md +4 -53
  9. package/all/copy-overwrite/.claude/commands/project/archive.md +4 -6
  10. package/all/copy-overwrite/.claude/commands/project/bootstrap.md +4 -25
  11. package/all/copy-overwrite/.claude/commands/project/debrief.md +4 -40
  12. package/all/copy-overwrite/.claude/commands/project/document.md +4 -48
  13. package/all/copy-overwrite/.claude/commands/project/execute.md +4 -64
  14. package/all/copy-overwrite/.claude/commands/project/fix-linter-error.md +4 -62
  15. package/all/copy-overwrite/.claude/commands/project/implement.md +4 -35
  16. package/all/copy-overwrite/.claude/commands/project/local-code-review.md +4 -85
  17. package/all/copy-overwrite/.claude/commands/project/lower-code-complexity.md +3 -58
  18. package/all/copy-overwrite/.claude/commands/project/plan.md +4 -175
  19. package/all/copy-overwrite/.claude/commands/project/reduce-max-lines-per-function.md +4 -61
  20. package/all/copy-overwrite/.claude/commands/project/reduce-max-lines.md +4 -58
  21. package/all/copy-overwrite/.claude/commands/project/research.md +4 -162
  22. package/all/copy-overwrite/.claude/commands/project/review.md +4 -45
  23. package/all/copy-overwrite/.claude/commands/project/setup.md +4 -52
  24. package/all/copy-overwrite/.claude/commands/project/verify.md +4 -38
  25. package/all/copy-overwrite/.claude/commands/pull-request/review.md +4 -69
  26. package/all/copy-overwrite/.claude/commands/sonarqube/check.md +3 -3
  27. package/all/copy-overwrite/.claude/commands/sonarqube/fix.md +6 -3
  28. package/all/copy-overwrite/.claude/commands/tasks/load.md +4 -85
  29. package/all/copy-overwrite/.claude/commands/tasks/sync.md +4 -106
  30. package/all/copy-overwrite/.claude/skills/git-commit/SKILL.md +49 -0
  31. package/all/copy-overwrite/.claude/skills/git-commit-and-submit-pr/SKILL.md +9 -0
  32. package/all/copy-overwrite/.claude/skills/git-prune/SKILL.md +35 -0
  33. package/all/copy-overwrite/.claude/skills/git-submit-pr/SKILL.md +45 -0
  34. package/all/copy-overwrite/.claude/skills/jira-create/SKILL.md +42 -0
  35. package/all/copy-overwrite/.claude/skills/jira-verify/SKILL.md +30 -0
  36. package/all/copy-overwrite/.claude/skills/lisa-review-implementation/SKILL.md +210 -0
  37. package/all/copy-overwrite/.claude/skills/project-add-test-coverage/SKILL.md +58 -0
  38. package/all/copy-overwrite/.claude/skills/project-archive/SKILL.md +10 -0
  39. package/all/copy-overwrite/.claude/skills/project-bootstrap/SKILL.md +29 -0
  40. package/all/copy-overwrite/.claude/skills/project-debrief/SKILL.md +44 -0
  41. package/all/copy-overwrite/.claude/skills/project-document/SKILL.md +51 -0
  42. package/all/copy-overwrite/.claude/skills/project-execute/SKILL.md +68 -0
  43. package/all/copy-overwrite/.claude/skills/project-fix-linter-error/SKILL.md +67 -0
  44. package/all/copy-overwrite/.claude/skills/project-implement/SKILL.md +39 -0
  45. package/all/copy-overwrite/.claude/skills/project-local-code-review/SKILL.md +89 -0
  46. package/all/copy-overwrite/.claude/skills/project-lower-code-complexity/SKILL.md +62 -0
  47. package/all/copy-overwrite/.claude/skills/project-plan/SKILL.md +179 -0
  48. package/all/copy-overwrite/.claude/skills/project-reduce-max-lines/SKILL.md +63 -0
  49. package/all/copy-overwrite/.claude/skills/project-reduce-max-lines-per-function/SKILL.md +66 -0
  50. package/all/copy-overwrite/.claude/skills/project-research/SKILL.md +166 -0
  51. package/all/copy-overwrite/.claude/skills/project-review/SKILL.md +49 -0
  52. package/all/copy-overwrite/.claude/skills/project-setup/SKILL.md +56 -0
  53. package/all/copy-overwrite/.claude/skills/project-verify/SKILL.md +42 -0
  54. package/all/copy-overwrite/.claude/skills/pull-request-review/SKILL.md +73 -0
  55. package/all/copy-overwrite/.claude/skills/sonarqube-check/SKILL.md +11 -0
  56. package/all/copy-overwrite/.claude/skills/sonarqube-fix/SKILL.md +8 -0
  57. package/all/copy-overwrite/.claude/skills/tasks-load/SKILL.md +89 -0
  58. package/all/copy-overwrite/.claude/skills/tasks-sync/SKILL.md +109 -0
  59. package/cdk/copy-overwrite/jest.cdk.ts +71 -0
  60. package/cdk/copy-overwrite/jest.config.ts +28 -0
  61. package/cdk/copy-overwrite/tsconfig.cdk.json +14 -0
  62. package/cdk/copy-overwrite/tsconfig.json +3 -0
  63. package/cdk/create-only/tsconfig.local.json +4 -0
  64. package/expo/copy-overwrite/jest.config.ts +28 -0
  65. package/expo/copy-overwrite/jest.expo.ts +76 -0
  66. package/expo/copy-overwrite/tsconfig.expo.json +9 -0
  67. package/expo/copy-overwrite/tsconfig.json +3 -0
  68. package/expo/create-only/tsconfig.local.json +9 -0
  69. package/nestjs/copy-overwrite/jest.config.ts +28 -0
  70. package/nestjs/copy-overwrite/jest.nestjs.ts +89 -0
  71. package/nestjs/copy-overwrite/tsconfig.build.json +5 -0
  72. package/nestjs/copy-overwrite/tsconfig.json +5 -0
  73. package/nestjs/copy-overwrite/tsconfig.nestjs.json +13 -0
  74. package/nestjs/copy-overwrite/tsconfig.spec.json +7 -0
  75. package/nestjs/create-only/tsconfig.local.json +6 -0
  76. package/package.json +1 -1
  77. package/typescript/copy-overwrite/jest.base.ts +112 -0
  78. package/typescript/copy-overwrite/jest.config.ts +34 -0
  79. package/typescript/copy-overwrite/jest.typescript.ts +72 -0
  80. package/typescript/copy-overwrite/tsconfig.base.json +15 -0
  81. package/typescript/copy-overwrite/tsconfig.json +5 -0
  82. package/typescript/copy-overwrite/tsconfig.typescript.json +11 -0
  83. package/typescript/create-only/jest.config.local.ts +30 -0
  84. package/typescript/create-only/jest.thresholds.json +8 -0
  85. package/typescript/create-only/tsconfig.local.json +6 -0
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: project-fix-linter-error
3
+ description: This skill should be used when fixing all violations of one or more ESLint rules across the codebase. It runs the linter, groups violations by rule and file, generates a brief with fix strategies, and bootstraps a project to implement the fixes.
4
+ allowed-tools: ["Read", "Bash", "Glob", "Grep"]
5
+ argument-hint: "<rule-1> [rule-2] [rule-3] ..."
6
+ model: sonnet
7
+ ---
8
+
9
+ # Fix Linter Errors
10
+
11
+ Target rules: $ARGUMENTS
12
+
13
+ If no arguments provided, prompt the user for at least one lint rule name.
14
+
15
+ ## Step 1: Gather Requirements
16
+
17
+ 1. **Parse rules** from $ARGUMENTS (space-separated)
18
+ 2. **Run linter** to collect all violations:
19
+ ```bash
20
+ bun run lint 2>&1
21
+ ```
22
+ 3. **Group violations** by rule, then by file, noting:
23
+ - File path and line numbers
24
+ - Violation count per file
25
+ - Sample error messages
26
+
27
+ ## Step 2: Generate Brief
28
+
29
+ Compile findings into a detailed brief:
30
+
31
+ ```
32
+ Fix ESLint violations for rules: $ARGUMENTS
33
+
34
+ ## Violations by Rule
35
+
36
+ ### [rule-name-1] (X total violations across Y files)
37
+
38
+ 1. src/services/user.ts (5 violations)
39
+ - Line 23: [error message]
40
+ - Line 45: [error message]
41
+ - Line 67: [error message]
42
+ ...
43
+ 2. src/utils/helpers.ts (3 violations)
44
+ - Line 12: [error message]
45
+ ...
46
+
47
+ ### [rule-name-2] (X total violations across Y files)
48
+ ...
49
+
50
+ ## Fix Strategies
51
+ - **Complexity rules** (sonarjs/*): Extract functions, early returns, simplify conditions
52
+ - **Style rules** (prettier/*, import/order): Apply formatting fixes
53
+ - **Best practice rules** (react-hooks/*, prefer-const): Refactor to recommended pattern
54
+ - **Type rules** (@typescript-eslint/*): Add proper types, remove `any`
55
+
56
+ ## Acceptance Criteria
57
+ - `bun run lint` passes with zero violations for: $ARGUMENTS
58
+ - Each rule's fixes committed separately: `fix(lint): resolve [rule-name] violations`
59
+
60
+ ## Verification
61
+ Command: `bun run lint 2>&1 | grep -E "($ARGUMENTS)" | wc -l`
62
+ Expected: 0
63
+ ```
64
+
65
+ ## Step 3: Bootstrap Project
66
+
67
+ Run `/project-bootstrap` with the generated brief as a text prompt.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: project-implement
3
+ description: This skill should be used when systematically implementing all tasks in a specified project. It retrieves planned tasks, executes them via subagents in parallel, runs verification commands, and tracks completion status.
4
+ allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "Task", "TaskCreate", "TaskUpdate", "TaskList", "TaskGet", "Skill"]
5
+ argument-hint: "<project-directory>"
6
+ ---
7
+
8
+ ## Setup
9
+
10
+ 1. Set active project marker: `echo "$ARGUMENTS" | sed 's|.*/||' > .claude-active-project`
11
+ 2. Extract `<project-name>` from the last segment of `$ARGUMENTS`
12
+ 3. Use **TaskList** to verify tasks exist for this project (check metadata.project)
13
+ 4. If no tasks found, error: "No tasks found. Run /project-plan first"
14
+
15
+ ## Implementation
16
+
17
+ Use **TaskList** to get current task status.
18
+
19
+ **Always execute tasks via subagents** to keep the main context window clean. Launch up to 6 subagents in parallel for unblocked tasks.
20
+
21
+ For each pending, unblocked task (filter by `metadata.project` = `<project-name>`):
22
+
23
+ 1. Use **TaskUpdate** to mark it `in_progress`
24
+ 2. Use **TaskGet** to retrieve full task details
25
+ 3. Complete the task following the instructions in its description
26
+ 4. Run the verification command and confirm expected output
27
+ 5. If verification passes, use **TaskUpdate** to mark it `completed`
28
+ 6. If verification fails, keep task `in_progress` and report the failure
29
+ 7. Check **TaskList** for newly unblocked tasks
30
+
31
+ Continue until all tasks are completed.
32
+
33
+ ## Complete
34
+
35
+ Use **TaskList** to generate a summary showing:
36
+ - Total tasks completed
37
+ - Any tasks that failed or remain in progress
38
+
39
+ After completing this phase, tell the user: "To continue, run `/project-review $ARGUMENTS`"
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: project-local-code-review
3
+ description: This skill should be used when performing a code review on local changes on the current branch compared to the main branch. It uses multiple parallel agents to check for bugs, CLAUDE.md compliance, git history context, previous PR comments, and code comment adherence, then scores and filters findings by confidence level.
4
+ disable-model-invocation: false
5
+ argument-hint: "<project-directory>"
6
+ ---
7
+
8
+ Provide a code review for the local changes on the current branch compared to the main branch.
9
+
10
+ To do this, follow these steps precisely:
11
+
12
+ 1. Use a Haiku agent to check the current git state:
13
+ - Run `git branch --show-current` to get the current branch name
14
+ - Run `git log main..HEAD --oneline` to see commits on this branch
15
+ - Run `git diff main...HEAD --stat` to see changed files
16
+ - If the current branch IS main, or there are no commits/changes compared to main, do not proceed.
17
+ 2. Use another Haiku agent to give you a list of file paths to (but not the contents of) any relevant CLAUDE.md files from the codebase: the root CLAUDE.md file (if one exists), as well as any CLAUDE.md files in the directories whose files were modified on this branch
18
+ 3. Use a Haiku agent to analyze the branch changes:
19
+ - Run `git log main..HEAD --format="%s%n%b"` to get commit messages
20
+ - Run `git diff main...HEAD` to get the full diff
21
+ - Return a summary of the changes
22
+ 4. Then, launch 5 parallel Sonnet agents to independently code review the change. The agents should do the following, then return a list of issues and the reason each issue was flagged (eg. CLAUDE.md adherence, bug, historical git context, etc.):
23
+ a. Agent #1: Audit the changes to make sure they comply with the CLAUDE.md. Note that CLAUDE.md is guidance for Claude as it writes code, so not all instructions will be applicable during code review.
24
+ b. Agent #2: Read the file changes (via `git diff main...HEAD`), then do a shallow scan for obvious bugs. Avoid reading extra context beyond the changes, focusing just on the changes themselves. Focus on large bugs, and avoid small issues and nitpicks. Ignore likely false positives.
25
+ c. Agent #3: Read the git blame and history of the code modified, to identify any bugs in light of that historical context
26
+ d. Agent #4: Read previous pull requests that touched these files, and check for any comments on those pull requests that may also apply to the current changes.
27
+ e. Agent #5: Read code comments in the modified files, and make sure the changes comply with any guidance in the comments.
28
+ 5. For each issue found in #4, launch a parallel Haiku agent that takes the diff, issue description, and list of CLAUDE.md files (from step 2), and returns a score to indicate the agent's level of confidence for whether the issue is real or false positive. To do that, the agent should score each issue on a scale from 0-100, indicating its level of confidence. For issues that were flagged due to CLAUDE.md instructions, the agent should double check that the CLAUDE.md actually calls out that issue specifically. The scale is (give this rubric to the agent verbatim):
29
+ a. 0: Not confident at all. This is a false positive that doesn't stand up to light scrutiny, or is a pre-existing issue.
30
+ b. 25: Somewhat confident. This might be a real issue, but may also be a false positive. The agent wasn't able to verify that it's a real issue. If the issue is stylistic, it is one that was not explicitly called out in the relevant CLAUDE.md.
31
+ c. 50: Moderately confident. The agent was able to verify this is a real issue, but it might be a nitpick or not happen very often in practice. Relative to the rest of the changes, it's not very important.
32
+ d. 75: Highly confident. The agent double checked the issue, and verified that it is very likely it is a real issue that will be hit in practice. The existing approach is insufficient. The issue is very important and will directly impact the code's functionality, or it is an issue that is directly mentioned in the relevant CLAUDE.md.
33
+ e. 100: Absolutely certain. The agent double checked the issue, and confirmed that it is definitely a real issue, that will happen frequently in practice. The evidence directly confirms this.
34
+ 6. Filter out any issues with a score less than 80.
35
+ 7. Write the review to $ARGUMENTS/claude-review.md. When writing your review, keep in mind to:
36
+ a. Keep your output brief
37
+ b. Avoid emojis
38
+ c. Reference relevant files and line numbers
39
+ 8. Briefly summarize $ARGUMENTS/claude-review.md as direct output to the user
40
+
41
+ Examples of false positives, for steps 4 and 5:
42
+
43
+ - Pre-existing issues
44
+ - Something that looks like a bug but is not actually a bug
45
+ - Pedantic nitpicks that a senior engineer wouldn't call out
46
+ - Issues that a linter, typechecker, or compiler would catch (eg. missing or incorrect imports, type errors, broken tests, formatting issues, pedantic style issues like newlines). No need to run these build steps yourself -- it is safe to assume that they will be run separately as part of CI.
47
+ - General code quality issues (eg. lack of test coverage, general security issues, poor documentation), unless explicitly required in CLAUDE.md
48
+ - Issues that are called out in CLAUDE.md, but explicitly silenced in the code (eg. due to a lint ignore comment)
49
+ - Changes in functionality that are likely intentional or are directly related to the broader change
50
+ - Real issues, but on lines that were not modified in the current branch
51
+
52
+ Notes:
53
+
54
+ - Do not check build signal or attempt to build or typecheck the app. These will run separately, and are not relevant to your code review.
55
+ - Use git commands to analyze local changes (not `gh` commands for remote PRs)
56
+ - Make a todo list first
57
+ - You must cite each bug with file path and line number (eg. if referring to a CLAUDE.md, you must reference it)
58
+ - For your final output, follow the following format precisely (assuming for this example that you found 3 issues):
59
+
60
+ ---
61
+
62
+ ### Code review for branch `<branch-name>`
63
+
64
+ Reviewed X commits with changes to Y files.
65
+
66
+ Found 3 issues:
67
+
68
+ 1. **<brief description of bug>** (CLAUDE.md says "<...>")
69
+ - File: `path/to/file.ts:L10-L15`
70
+
71
+ 2. **<brief description of bug>** (some/other/CLAUDE.md says "<...>")
72
+ - File: `path/to/other-file.ts:L25-L30`
73
+
74
+ 3. **<brief description of bug>** (bug due to <reasoning>)
75
+ - File: `path/to/another-file.ts:L5-L8`
76
+
77
+ ---
78
+
79
+ - Or, if you found no issues:
80
+
81
+ ---
82
+
83
+ ### Code review for branch `<branch-name>`
84
+
85
+ Reviewed X commits with changes to Y files.
86
+
87
+ No issues found. Checked for bugs and CLAUDE.md compliance.
88
+
89
+ ---
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: project-lower-code-complexity
3
+ description: This skill should be used when reducing the cognitive complexity threshold of the codebase. It lowers the threshold by 2, identifies functions that exceed the new limit, generates a brief with refactoring strategies, and bootstraps a project to fix all violations.
4
+ allowed-tools: ["Read", "Bash", "Glob", "Grep"]
5
+ ---
6
+
7
+ # Lower Code Complexity
8
+
9
+ Reduces the cognitive complexity threshold by 2 and fixes all violations.
10
+
11
+ ## Step 1: Gather Requirements
12
+
13
+ 1. **Read current threshold** from eslint config (cognitive-complexity rule)
14
+ 2. **Calculate new threshold**: current - 2 (e.g., 15 -> 13)
15
+ 3. **Run lint** with the new threshold to find violations:
16
+ ```bash
17
+ bun run lint 2>&1 | grep "cognitive-complexity"
18
+ ```
19
+ 4. **Note for each violation**:
20
+ - File path and line number
21
+ - Function name
22
+ - Current complexity score
23
+
24
+ If no violations at new threshold, report success and exit.
25
+
26
+ ## Step 2: Generate Brief
27
+
28
+ Compile findings into a detailed brief:
29
+
30
+ ```
31
+ Reduce cognitive complexity threshold from [current] to [new].
32
+
33
+ ## Functions Exceeding Threshold (ordered by complexity)
34
+
35
+ 1. src/services/user.ts:processUser (complexity: 18, target: [new])
36
+ - Line 45, function spans lines 45-120
37
+ 2. src/utils/helpers.ts:validateInput (complexity: 15, target: [new])
38
+ - Line 23, function spans lines 23-67
39
+ ...
40
+
41
+ ## Configuration Change
42
+ - File: [eslint config path]
43
+ - Change: cognitive-complexity threshold from [current] to [new]
44
+
45
+ ## Refactoring Strategies
46
+ - **Extract functions**: Break complex logic into smaller, named functions
47
+ - **Early returns**: Reduce nesting with guard clauses
48
+ - **Extract conditions**: Move complex boolean logic into named variables
49
+ - **Use lookup tables**: Replace complex switch/if-else chains with object maps
50
+
51
+ ## Acceptance Criteria
52
+ - All functions at or below complexity [new]
53
+ - `bun run lint` passes with no cognitive-complexity violations
54
+
55
+ ## Verification
56
+ Command: `bun run lint 2>&1 | grep "cognitive-complexity" | wc -l`
57
+ Expected: 0
58
+ ```
59
+
60
+ ## Step 3: Bootstrap Project
61
+
62
+ Run `/project-bootstrap` with the generated brief as a text prompt.
@@ -0,0 +1,179 @@
1
+ ---
2
+ name: project-plan
3
+ description: This skill should be used when creating a detailed list of implementation tasks from research.md and brief.md files. It validates research completeness, discovers available skills, creates granular tasks with verification commands, and establishes task dependencies.
4
+ allowed-tools: ["Read", "Bash", "Glob", "Grep", "TaskCreate", "TaskUpdate", "TaskList", "Skill"]
5
+ argument-hint: "<project-directory>"
6
+ ---
7
+
8
+ ## Setup
9
+
10
+ Set active project marker: `echo "$ARGUMENTS" | sed 's|.*/||' > .claude-active-project`
11
+
12
+ Extract `<project-name>` from the last segment of `$ARGUMENTS`.
13
+
14
+ ## Step 1: Read Project Files
15
+
16
+ Read `$ARGUMENTS/brief.md` and `$ARGUMENTS/research.md` FULLY (no limit/offset).
17
+
18
+ ## Step 2: Validate Research
19
+
20
+ Locate "## Open Questions" in research.md.
21
+
22
+ **Valid states** (proceed):
23
+ - Section contains "None", "[None identified]", "N/A", or is empty
24
+ - Section doesn't exist
25
+ - All `**Answer**:` fields are filled
26
+
27
+ **Invalid state** (stop immediately):
28
+ - Questions with unfilled `**Answer**:` fields
29
+
30
+ If invalid, report:
31
+ ```
32
+ CANNOT PROCEED WITH PLANNING
33
+
34
+ The research.md file has unanswered open questions.
35
+
36
+ Unanswered Questions Found:
37
+ [List each question]
38
+
39
+ Action Required:
40
+ 1. Review $ARGUMENTS/research.md "## Open Questions"
41
+ 2. Fill in the **Answer**: field for each question
42
+ 3. Re-run /project-plan
43
+ ```
44
+
45
+ **IMPORTANT**: NEVER modify research.md during validation.
46
+
47
+ ## Step 3: Discover Skills
48
+
49
+ Read `.claude/skills/*/SKILL.md` files (first 10 lines each) to map skills to applicable tasks.
50
+
51
+ ## Step 4: Create Tasks
52
+
53
+ ### Determine Task List
54
+
55
+ Each task must be small enough to have a **single, specific verification**.
56
+ - Ask: "Can I prove this task is done with ONE command or check?"
57
+ - Exception: `ui-recording` tasks may verify per-platform (web/iOS/Android)
58
+
59
+ **Properly-sized tasks:**
60
+ - "Add logout button to header" → single Playwright test
61
+ - "Add unit tests for UserService" → single coverage command
62
+ - "Create API endpoint for user profile" → single curl command
63
+
64
+ **Too large (split these):**
65
+ - "Build authentication system" → split into login, logout, session, etc.
66
+ - "Add user management feature" → split into list, create, edit, etc.
67
+
68
+ ### Create Tasks with TaskCreate
69
+
70
+ For each task, use **TaskCreate** with:
71
+
72
+ **subject**: Task name in imperative form (e.g., "Add logout button to header")
73
+
74
+ **activeForm**: Present continuous form (e.g., "Adding logout button to header")
75
+
76
+ **description**: Full task specification in markdown:
77
+
78
+ ```markdown
79
+ **Type:** Bug | Task | Epic | Story
80
+
81
+ ## Description
82
+ [Clear description based on type:
83
+ - Bug: Symptoms, root cause approach
84
+ - Story: Gherkin BDD format (Given/When/Then)
85
+ - Task: Straightforward with clear goal
86
+ - Epic: Goal overview with sub-tasks]
87
+
88
+ ## Acceptance Criteria
89
+ - [ ] Criterion 1
90
+ - [ ] Criterion 2
91
+
92
+ ## Relevant Research
93
+ [Extract from research.md: code references, patterns, architecture constraints]
94
+
95
+ ## Skills to Invoke
96
+ - `/coding-philosophy` - Always required
97
+ - [Other applicable skills from Step 3]
98
+
99
+ ## Implementation Details
100
+ [Files to modify, functions to implement, edge cases]
101
+
102
+ ## Testing Requirements
103
+ ### Unit Tests
104
+ - [ ] `describe('X')/it('should Y')`: Description
105
+
106
+ ### Integration Tests
107
+ [Or "N/A - no integration points"]
108
+
109
+ ### E2E Tests
110
+ [Or "N/A - no user-facing changes"]
111
+
112
+ ## Verification
113
+
114
+ Every task MUST have empirical verification - a command that proves the work is done.
115
+
116
+ **Why?** Code that "looks correct" often isn't. The only way to know something works is to run it and observe the result. Verification isn't "I wrote the code" - it's running a command and seeing expected output.
117
+
118
+ **Type:** `test` | `ui-recording` | `test-coverage` | `api-test` | `manual-check` | `documentation`
119
+
120
+ | Type | When to Use | Example |
121
+ |------|-------------|---------|
122
+ | `test` | Run specific tests | `npm test -- src/services/user.spec.ts` |
123
+ | `ui-recording` | UI/UX changes | `npm run playwright:test ...` |
124
+ | `test-coverage` | Coverage threshold | `npm run test:cov -- --collectCoverageFrom='...'` |
125
+ | `api-test` | API endpoints | `curl -s http://localhost:3000/api/endpoint` |
126
+ | `documentation` | Docs, README | `cat path/to/doc.md \| grep "expected content"` |
127
+ | `manual-check` | Config, setup | `cat config.json \| jq '.setting'` |
128
+
129
+ **Proof Command:**
130
+ ```bash
131
+ [Single command that outputs observable proof of completion]
132
+ ```
133
+
134
+ **Expected Output:**
135
+ [Exact or pattern-matched output that proves success]
136
+
137
+ ## Learnings
138
+ During implementation, collect any discoveries valuable for future developers:
139
+ - Gotchas or unexpected behavior encountered
140
+ - Edge cases that weren't obvious from requirements
141
+ - Better approaches discovered during implementation
142
+ - Patterns that should be reused or avoided
143
+ - Documentation gaps or misleading information found
144
+
145
+ **On task completion**, use `TaskUpdate` to save learnings:
146
+ ```
147
+ TaskUpdate:
148
+ taskId: "<this-task-id>"
149
+ metadata: { learnings: ["Learning 1", "Learning 2", ...] }
150
+ ```
151
+ ```
152
+
153
+ **metadata**:
154
+ ```json
155
+ {
156
+ "project": "<project-name>",
157
+ "type": "bug|task|epic|story",
158
+ "skills": ["/coding-philosophy", ...],
159
+ "verification": {
160
+ "type": "test|ui-recording|test-coverage|api-test|manual-check|documentation",
161
+ "command": "the proof command",
162
+ "expected": "what success looks like"
163
+ }
164
+ }
165
+ ```
166
+
167
+ ### Set Up Dependencies
168
+
169
+ After creating all tasks, use **TaskUpdate** with `addBlockedBy` to establish task order where needed.
170
+
171
+ ## Step 5: Report
172
+
173
+ Report: "Planning complete - X tasks created for project <project-name>"
174
+
175
+ Use **TaskList** to show the created tasks.
176
+
177
+ ---
178
+
179
+ **IMPORTANT**: Each task description should contain all necessary information from `brief.md` and `research.md` to complete in isolation. Tasks should be independent and as small in scope as possible.
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: project-reduce-max-lines
3
+ description: This skill should be used when reducing the maximum file lines threshold and fixing all violations. It updates the eslint threshold configuration, identifies files exceeding the new limit, generates a brief with refactoring strategies, and bootstraps a project to split oversized files.
4
+ allowed-tools: ["Read", "Bash", "Glob", "Grep"]
5
+ argument-hint: "<max-lines-value>"
6
+ model: sonnet
7
+ ---
8
+
9
+ # Reduce Max Lines
10
+
11
+ Target threshold: $ARGUMENTS lines per file
12
+
13
+ If no argument provided, prompt the user for a target.
14
+
15
+ ## Step 1: Gather Requirements
16
+
17
+ 1. **Read current config** from eslint thresholds (eslint.thresholds.json or similar)
18
+ 2. **Run lint** with the new threshold to find violations:
19
+ ```bash
20
+ bun run lint 2>&1 | grep "max-lines"
21
+ ```
22
+ 3. **Note for each violation**:
23
+ - File path
24
+ - Current line count
25
+
26
+ If no violations at $ARGUMENTS, report success and exit.
27
+
28
+ ## Step 2: Generate Brief
29
+
30
+ Compile findings into a detailed brief:
31
+
32
+ ```
33
+ Reduce max file lines threshold to $ARGUMENTS.
34
+
35
+ ## Files Exceeding Threshold (ordered by line count)
36
+
37
+ 1. src/services/user.ts (450 lines, target: $ARGUMENTS)
38
+ 2. src/utils/helpers.ts (380 lines, target: $ARGUMENTS)
39
+ 3. src/components/Dashboard.tsx (320 lines, target: $ARGUMENTS)
40
+ ...
41
+
42
+ ## Configuration Change
43
+ - File: eslint.thresholds.json
44
+ - Change: maxLines to $ARGUMENTS
45
+
46
+ ## Refactoring Strategies
47
+ - **Extract modules**: Break file into smaller focused modules
48
+ - **Remove duplication**: Consolidate repeated logic
49
+ - **Delete dead code**: Remove unused functions/code paths
50
+ - **Simplify logic**: Use early returns, reduce nesting
51
+
52
+ ## Acceptance Criteria
53
+ - All files at or below $ARGUMENTS lines
54
+ - `bun run lint` passes with no max-lines violations
55
+
56
+ ## Verification
57
+ Command: `bun run lint 2>&1 | grep "max-lines" | wc -l`
58
+ Expected: 0
59
+ ```
60
+
61
+ ## Step 3: Bootstrap Project
62
+
63
+ Run `/project-bootstrap` with the generated brief as a text prompt.
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: project-reduce-max-lines-per-function
3
+ description: This skill should be used when reducing the maximum lines per function threshold and fixing all violations. It updates the eslint threshold configuration, identifies functions exceeding the new limit, generates a brief with refactoring strategies, and bootstraps a project to split oversized functions.
4
+ allowed-tools: ["Read", "Bash", "Glob", "Grep"]
5
+ argument-hint: "<max-lines-per-function-value>"
6
+ model: sonnet
7
+ ---
8
+
9
+ # Reduce Max Lines Per Function
10
+
11
+ Target threshold: $ARGUMENTS lines per function
12
+
13
+ If no argument provided, prompt the user for a target.
14
+
15
+ ## Step 1: Gather Requirements
16
+
17
+ 1. **Read current config** from eslint thresholds (eslint.thresholds.json or similar)
18
+ 2. **Run lint** with the new threshold to find violations:
19
+ ```bash
20
+ bun run lint 2>&1 | grep "max-lines-per-function"
21
+ ```
22
+ 3. **Note for each violation**:
23
+ - File path and line number
24
+ - Function name
25
+ - Current line count
26
+
27
+ If no violations at $ARGUMENTS, report success and exit.
28
+
29
+ ## Step 2: Generate Brief
30
+
31
+ Compile findings into a detailed brief:
32
+
33
+ ```
34
+ Reduce max lines per function threshold to $ARGUMENTS.
35
+
36
+ ## Functions Exceeding Threshold (ordered by line count)
37
+
38
+ 1. src/services/user.ts:processUser (95 lines, target: $ARGUMENTS)
39
+ - Line 45, function spans lines 45-140
40
+ 2. src/utils/helpers.ts:validateInput (82 lines, target: $ARGUMENTS)
41
+ - Line 23, function spans lines 23-105
42
+ ...
43
+
44
+ ## Configuration Change
45
+ - File: eslint.thresholds.json
46
+ - Change: maxLinesPerFunction to $ARGUMENTS
47
+
48
+ ## Refactoring Strategies
49
+ - **Extract functions**: Break function into smaller named functions
50
+ - **Early returns**: Reduce nesting with guard clauses
51
+ - **Extract conditions**: Move complex boolean logic into named variables
52
+ - **Use lookup tables**: Replace complex switch/if-else chains with object maps
53
+ - **Consolidate logic**: Merge similar code paths
54
+
55
+ ## Acceptance Criteria
56
+ - All functions at or below $ARGUMENTS lines
57
+ - `bun run lint` passes with no max-lines-per-function violations
58
+
59
+ ## Verification
60
+ Command: `bun run lint 2>&1 | grep "max-lines-per-function" | wc -l`
61
+ Expected: 0
62
+ ```
63
+
64
+ ## Step 3: Bootstrap Project
65
+
66
+ Run `/project-bootstrap` with the generated brief as a text prompt.