@tplog/hasapi 0.1.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 (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +54 -0
  3. package/bin/hasapi.mjs +292 -0
  4. package/hasapi-skills/README.md +56 -0
  5. package/hasapi-skills/_shared/common.md +240 -0
  6. package/hasapi-skills/_shared/custom-risks-guide.md +48 -0
  7. package/hasapi-skills/_shared/decay-risks.md +294 -0
  8. package/hasapi-skills/_shared/remedy-guide.md +37 -0
  9. package/hasapi-skills/_shared/source-coverage.md +248 -0
  10. package/hasapi-skills/_shared/test-decay-risks.md +246 -0
  11. package/hasapi-skills/hasapi-audit/SKILL.md +42 -0
  12. package/hasapi-skills/hasapi-audit/architecture-guide.md +195 -0
  13. package/hasapi-skills/hasapi-audit/onboarding-guide.md +89 -0
  14. package/hasapi-skills/hasapi-debt/SKILL.md +35 -0
  15. package/hasapi-skills/hasapi-debt/debt-guide.md +125 -0
  16. package/hasapi-skills/hasapi-diagnosing-bugs/SKILL.md +134 -0
  17. package/hasapi-skills/hasapi-diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
  18. package/hasapi-skills/hasapi-grilling/SKILL.md +10 -0
  19. package/hasapi-skills/hasapi-handoff/SKILL.md +16 -0
  20. package/hasapi-skills/hasapi-health/SKILL.md +37 -0
  21. package/hasapi-skills/hasapi-health/health-guide.md +89 -0
  22. package/hasapi-skills/hasapi-implement/SKILL.md +15 -0
  23. package/hasapi-skills/hasapi-resolving-merge-conflicts/SKILL.md +14 -0
  24. package/hasapi-skills/hasapi-review/SKILL.md +37 -0
  25. package/hasapi-skills/hasapi-review/pr-review-guide.md +163 -0
  26. package/hasapi-skills/hasapi-setup/SKILL.md +121 -0
  27. package/hasapi-skills/hasapi-setup/domain.md +51 -0
  28. package/hasapi-skills/hasapi-setup/issue-tracker-github.md +22 -0
  29. package/hasapi-skills/hasapi-setup/issue-tracker-gitlab.md +23 -0
  30. package/hasapi-skills/hasapi-setup/issue-tracker-local.md +19 -0
  31. package/hasapi-skills/hasapi-setup/triage-labels.md +15 -0
  32. package/hasapi-skills/hasapi-sweep/SKILL.md +38 -0
  33. package/hasapi-skills/hasapi-sweep/sweep-guide.md +264 -0
  34. package/hasapi-skills/hasapi-tdd/SKILL.md +108 -0
  35. package/hasapi-skills/hasapi-tdd/mocking.md +59 -0
  36. package/hasapi-skills/hasapi-tdd/refactoring.md +10 -0
  37. package/hasapi-skills/hasapi-tdd/tests.md +61 -0
  38. package/hasapi-skills/hasapi-test/SKILL.md +36 -0
  39. package/hasapi-skills/hasapi-test/test-guide.md +147 -0
  40. package/hasapi-skills/hasapi-to-issues/SKILL.md +84 -0
  41. package/hasapi-skills/hasapi-to-prd/SKILL.md +75 -0
  42. package/package.json +39 -0
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: hasapi-to-issues
3
+ description: Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # To Issues
8
+
9
+ Break a plan into independently-grabbable issues using vertical slices (tracer bullets).
10
+
11
+ The issue tracker and triage label vocabulary should have been provided to you — run `/skill:hasapi-setup` if not.
12
+
13
+ ## Process
14
+
15
+ ### 1. Gather context
16
+
17
+ Work from whatever is already in the conversation context. If the user passes an issue reference (issue number, URL, or path) as an argument, fetch it from the issue tracker and read its full body and comments.
18
+
19
+ ### 2. Explore the codebase (optional)
20
+
21
+ If you have not already explored the codebase, do so to understand the current state of the code. Issue titles and descriptions should use the project's domain glossary vocabulary, and respect ADRs in the area you're touching.
22
+
23
+ Look for opportunities to prefactor the code to make the implementation easier. "Make the change easy, then make the easy change."
24
+
25
+ ### 3. Draft vertical slices
26
+
27
+ Break the plan into **tracer bullet** issues. Each issue is a thin vertical slice that cuts through ALL integration layers end-to-end, NOT a horizontal slice of one layer.
28
+
29
+ <vertical-slice-rules>
30
+
31
+ - Each slice delivers a narrow but COMPLETE path through every layer (schema, API, UI, tests)
32
+ - A completed slice is demoable or verifiable on its own
33
+ - Any prefactoring should be done first
34
+
35
+ </vertical-slice-rules>
36
+
37
+ ### 4. Quiz the user
38
+
39
+ Present the proposed breakdown as a numbered list. For each slice, show:
40
+
41
+ - **Title**: short descriptive name
42
+ - **Blocked by**: which other slices (if any) must complete first
43
+ - **User stories covered**: which user stories this addresses (if the source material has them)
44
+
45
+ Ask the user:
46
+
47
+ - Does the granularity feel right? (too coarse / too fine)
48
+ - Are the dependency relationships correct?
49
+ - Should any slices be merged or split further?
50
+
51
+ Iterate until the user approves the breakdown.
52
+
53
+ ### 5. Publish the issues to the issue tracker
54
+
55
+ For each approved slice, publish a new issue to the issue tracker. Use the issue body template below. These issues are considered ready for AFK agents, so publish them with the correct triage label unless instructed otherwise.
56
+
57
+ Publish issues in dependency order (blockers first) so you can reference real issue identifiers in the "Blocked by" field.
58
+
59
+ <issue-template>
60
+ ## Parent
61
+
62
+ A reference to the parent issue on the issue tracker (if the source was an existing issue, otherwise omit this section).
63
+
64
+ ## What to build
65
+
66
+ A concise description of this vertical slice. Describe the end-to-end behavior, not layer-by-layer implementation.
67
+
68
+ Avoid specific file paths or code snippets — they go stale fast. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it here and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
69
+
70
+ ## Acceptance criteria
71
+
72
+ - [ ] Criterion 1
73
+ - [ ] Criterion 2
74
+ - [ ] Criterion 3
75
+
76
+ ## Blocked by
77
+
78
+ - A reference to the blocking ticket (if any)
79
+
80
+ Or "None - can start immediately" if no blockers.
81
+
82
+ </issue-template>
83
+
84
+ Do NOT close or modify any parent issue.
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: hasapi-to-prd
3
+ description: Turn the current conversation into a PRD and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ This skill takes the current conversation context and codebase understanding and produces a PRD. Do NOT interview the user — just synthesize what you already know.
8
+
9
+ The issue tracker and triage label vocabulary should have been provided to you — run `/skill:hasapi-setup` if not.
10
+
11
+ ## Process
12
+
13
+ 1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the PRD, and respect any ADRs in the area you're touching.
14
+
15
+ 2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.
16
+
17
+ Check with the user that these seams match their expectations.
18
+
19
+ 3. Write the PRD using the template below, then publish it to the project issue tracker. Apply the `ready-for-agent` triage label - no need for additional triage.
20
+
21
+ <prd-template>
22
+
23
+ ## Problem Statement
24
+
25
+ The problem that the user is facing, from the user's perspective.
26
+
27
+ ## Solution
28
+
29
+ The solution to the problem, from the user's perspective.
30
+
31
+ ## User Stories
32
+
33
+ A LONG, numbered list of user stories. Each user story should be in the format of:
34
+
35
+ 1. As an <actor>, I want a <feature>, so that <benefit>
36
+
37
+ <user-story-example>
38
+ 1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending
39
+ </user-story-example>
40
+
41
+ This list of user stories should be extremely extensive and cover all aspects of the feature.
42
+
43
+ ## Implementation Decisions
44
+
45
+ A list of implementation decisions that were made. This can include:
46
+
47
+ - The modules that will be built/modified
48
+ - The interfaces of those modules that will be modified
49
+ - Technical clarifications from the developer
50
+ - Architectural decisions
51
+ - Schema changes
52
+ - API contracts
53
+ - Specific interactions
54
+
55
+ Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.
56
+
57
+ Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts — not a working demo, just the important bits.
58
+
59
+ ## Testing Decisions
60
+
61
+ A list of testing decisions that were made. Include:
62
+
63
+ - A description of what makes a good test (only test external behavior, not implementation details)
64
+ - Which modules will be tested
65
+ - Prior art for the tests (i.e. similar types of tests in the codebase)
66
+
67
+ ## Out of Scope
68
+
69
+ A description of the things that are out of scope for this PRD.
70
+
71
+ ## Further Notes
72
+
73
+ Any further notes about the feature.
74
+
75
+ </prd-template>
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@tplog/hasapi",
3
+ "version": "0.1.0",
4
+ "description": "One-shot installer that adds curated extensions and skills to the Pi coding agent.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tplog/hasapi.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/tplog/hasapi/issues"
12
+ },
13
+ "homepage": "https://github.com/tplog/hasapi#readme",
14
+ "type": "module",
15
+ "bin": {
16
+ "hasapi": "bin/hasapi.mjs"
17
+ },
18
+ "files": [
19
+ "bin",
20
+ "hasapi-skills",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "scripts": {
28
+ "start": "node bin/hasapi.mjs"
29
+ },
30
+ "keywords": [
31
+ "pi",
32
+ "pi-mono",
33
+ "pi-coding-agent",
34
+ "installer",
35
+ "npx",
36
+ "skills",
37
+ "extensions"
38
+ ]
39
+ }