@anionzo/skill 1.3.0 → 1.6.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/CONTRIBUTING.md +2 -1
- package/README.md +29 -10
- package/docs/design-brief.md +19 -13
- package/i18n/CONTRIBUTING.vi.md +2 -1
- package/i18n/README.vi.md +29 -10
- package/i18n/design-brief.vi.md +19 -13
- package/knowledge/global/skill-triggering-rules.md +2 -1
- package/package.json +1 -1
- package/scripts/install-opencode-skills +161 -12
- package/skills/brainstorming/SKILL.md +176 -13
- package/skills/brainstorming/meta.yaml +19 -10
- package/skills/code-review/SKILL.md +214 -19
- package/skills/code-review/meta.yaml +21 -9
- package/skills/commit/SKILL.md +187 -0
- package/skills/commit/examples.md +62 -0
- package/skills/commit/meta.yaml +30 -0
- package/skills/commit/references/output-template.md +14 -0
- package/skills/debug/SKILL.md +252 -0
- package/skills/debug/examples.md +83 -0
- package/skills/debug/meta.yaml +38 -0
- package/skills/debug/references/output-template.md +16 -0
- package/skills/docs-writer/SKILL.md +85 -10
- package/skills/docs-writer/meta.yaml +16 -12
- package/skills/extract/SKILL.md +161 -0
- package/skills/extract/examples.md +47 -0
- package/skills/extract/meta.yaml +27 -0
- package/skills/extract/references/output-template.md +24 -0
- package/skills/feature-delivery/SKILL.md +10 -5
- package/skills/feature-delivery/meta.yaml +5 -0
- package/skills/go-pipeline/SKILL.md +156 -0
- package/skills/go-pipeline/examples.md +56 -0
- package/skills/go-pipeline/meta.yaml +27 -0
- package/skills/go-pipeline/references/output-template.md +17 -0
- package/skills/planning/SKILL.md +128 -17
- package/skills/planning/meta.yaml +15 -6
- package/skills/refactor-safe/SKILL.md +10 -7
- package/skills/repo-onboarding/SKILL.md +11 -7
- package/skills/repo-onboarding/meta.yaml +2 -0
- package/skills/research/SKILL.md +100 -0
- package/skills/research/examples.md +79 -0
- package/skills/research/meta.yaml +27 -0
- package/skills/research/references/output-template.md +23 -0
- package/skills/test-driven-development/SKILL.md +194 -0
- package/skills/test-driven-development/examples.md +77 -0
- package/skills/test-driven-development/meta.yaml +31 -0
- package/skills/test-driven-development/references/.gitkeep +0 -0
- package/skills/test-driven-development/references/output-template.md +31 -0
- package/skills/using-skills/SKILL.md +32 -14
- package/skills/using-skills/examples.md +3 -3
- package/skills/using-skills/meta.yaml +8 -3
- package/skills/verification-before-completion/SKILL.md +127 -13
- package/skills/verification-before-completion/meta.yaml +24 -14
- package/templates/SKILL.md +8 -1
- package/skills/bug-triage/SKILL.md +0 -47
- package/skills/bug-triage/examples.md +0 -68
- package/skills/bug-triage/meta.yaml +0 -25
- package/skills/bug-triage/references/output-template.md +0 -26
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
name: verification-before-completion
|
|
2
|
-
version: 0.
|
|
3
|
-
category:
|
|
4
|
-
summary:
|
|
5
|
-
summary_vi:
|
|
2
|
+
version: 0.3.0
|
|
3
|
+
category: quality
|
|
4
|
+
summary: Iron law enforcement of fresh evidence before completion claims, with forbidden words, anti-rationalization, and AC coverage.
|
|
5
|
+
summary_vi: "Thực thi nghiêm ngặt bằng chứng mới trước khi tuyên bố hoàn thành, với từ cấm, chống rationalization, và AC coverage."
|
|
6
6
|
triggers:
|
|
7
|
+
- verify this works
|
|
8
|
+
- check before marking done
|
|
9
|
+
- confirm the fix
|
|
7
10
|
- before saying a fix works
|
|
8
|
-
- before marking work complete
|
|
9
11
|
- before commit, PR, or handoff
|
|
10
12
|
inputs:
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
+
- claim being made
|
|
14
|
+
- verification command or check
|
|
15
|
+
- optional spec reference for AC coverage
|
|
13
16
|
outputs:
|
|
14
|
-
- verified
|
|
15
|
-
-
|
|
17
|
+
- verification status (verified/failed/blocked)
|
|
18
|
+
- verification levels per deliverable (L1/L2/L3)
|
|
19
|
+
- AC coverage report (if spec-linked)
|
|
16
20
|
- remaining uncertainty
|
|
17
21
|
constraints:
|
|
18
|
-
- no
|
|
19
|
-
-
|
|
22
|
+
- no completion claims without fresh verification evidence
|
|
23
|
+
- forbidden words without evidence block completion
|
|
24
|
+
- must run fresh verification, not use stale output
|
|
25
|
+
- stubs (L1 only) block completion
|
|
20
26
|
related_skills:
|
|
21
27
|
- using-skills
|
|
28
|
+
- code-review
|
|
29
|
+
- commit
|
|
30
|
+
- docs-writer
|
|
22
31
|
- feature-delivery
|
|
23
|
-
-
|
|
24
|
-
-
|
|
32
|
+
- debug
|
|
33
|
+
- go-pipeline
|
|
25
34
|
- planning
|
|
26
|
-
-
|
|
35
|
+
- refactor-safe
|
|
36
|
+
- test-driven-development
|
package/templates/SKILL.md
CHANGED
|
@@ -17,7 +17,14 @@ State the job this skill performs.
|
|
|
17
17
|
|
|
18
18
|
## Output Format
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Present results using the Shared Output Contract:
|
|
21
|
+
|
|
22
|
+
1. **Goal/Result** — what was accomplished or blocked
|
|
23
|
+
2. **Key Details:**
|
|
24
|
+
- the most important supporting context
|
|
25
|
+
- concrete references (files, commands, evidence)
|
|
26
|
+
- assumptions or gaps
|
|
27
|
+
3. **Next Action** — recommend a follow-up only when a natural handoff exists
|
|
21
28
|
|
|
22
29
|
## Red Flags
|
|
23
30
|
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Bug Triage
|
|
2
|
-
|
|
3
|
-
## Purpose
|
|
4
|
-
|
|
5
|
-
Investigate failures methodically so the next fix is based on evidence instead of guesswork.
|
|
6
|
-
|
|
7
|
-
## When To Use
|
|
8
|
-
|
|
9
|
-
Load this skill when:
|
|
10
|
-
|
|
11
|
-
- a user reports a bug or regression
|
|
12
|
-
- a test starts failing without obvious cause
|
|
13
|
-
- production behavior no longer matches the intended behavior
|
|
14
|
-
|
|
15
|
-
## Workflow
|
|
16
|
-
|
|
17
|
-
1. Restate the symptom in plain language.
|
|
18
|
-
2. Attempt to reproduce the issue or explain why reproduction is blocked.
|
|
19
|
-
3. Narrow the problem:
|
|
20
|
-
- identify the code path involved
|
|
21
|
-
- inspect recent behavior changes or assumptions
|
|
22
|
-
- check inputs, state, timing, or environment differences
|
|
23
|
-
4. Form the smallest credible root-cause hypothesis.
|
|
24
|
-
5. Define the minimal next change or experiment that would confirm the cause.
|
|
25
|
-
6. Add or recommend regression coverage when the cause is clear.
|
|
26
|
-
|
|
27
|
-
## Output Format
|
|
28
|
-
|
|
29
|
-
- symptom summary
|
|
30
|
-
- reproduction status
|
|
31
|
-
- suspected root cause
|
|
32
|
-
- impacted area
|
|
33
|
-
- proposed next change
|
|
34
|
-
- confidence level
|
|
35
|
-
|
|
36
|
-
## Red Flags
|
|
37
|
-
|
|
38
|
-
- proposing a rewrite before understanding the current failure
|
|
39
|
-
- changing many files before narrowing the cause
|
|
40
|
-
- ignoring whether the behavior is reproducible
|
|
41
|
-
- treating logs or stack traces as proof without checking the code path
|
|
42
|
-
|
|
43
|
-
## Done Criteria
|
|
44
|
-
|
|
45
|
-
This skill is complete when the next fix or experiment is specific, minimal, and tied to a clearly stated hypothesis.
|
|
46
|
-
|
|
47
|
-
If the fix is non-trivial or touches more than one area, hand off to `planning` before moving to `feature-delivery`.
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# Examples
|
|
2
|
-
|
|
3
|
-
## Example 1
|
|
4
|
-
|
|
5
|
-
User request:
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
Users get logged out randomly after the deploy.
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
Expected result:
|
|
12
|
-
|
|
13
|
-
- restate the symptom and affected surface area
|
|
14
|
-
- inspect auth session code path and recent deploy changes
|
|
15
|
-
- identify one or two likely causes before editing unrelated modules
|
|
16
|
-
|
|
17
|
-
Sample completed output:
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
Symptom: Users with active sessions are being logged out unexpectedly after the v2.4.1 deploy.
|
|
21
|
-
|
|
22
|
-
Reproduction: Confirmed on staging — session is invalidated ~10 minutes after login even without user action.
|
|
23
|
-
|
|
24
|
-
Root-Cause Hypothesis:
|
|
25
|
-
- Most likely: SESSION_TTL env var was changed from 3600 to 600 in the deploy config
|
|
26
|
-
- Evidence: session.ts reads process.env.SESSION_TTL; config diff shows the change
|
|
27
|
-
- Uncertainty: not yet confirmed whether all env changes were intentional
|
|
28
|
-
|
|
29
|
-
Next Change: Restore SESSION_TTL to 3600 in production config and redeploy
|
|
30
|
-
|
|
31
|
-
Confidence: high
|
|
32
|
-
|
|
33
|
-
Handoff: feature-delivery (fix is already clear and local)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Example 2
|
|
37
|
-
|
|
38
|
-
User request:
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
This integration test started failing with a timeout.
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Expected result:
|
|
45
|
-
|
|
46
|
-
- determine where the timeout occurs
|
|
47
|
-
- distinguish between slow setup, deadlock, or missing response
|
|
48
|
-
- propose the smallest confirming step
|
|
49
|
-
|
|
50
|
-
### Completed output
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
Symptom: Integration test `test/integration/payment.test.ts` times out after 30s on the "processes valid refund" case.
|
|
54
|
-
|
|
55
|
-
Reproduction: Confirmed locally — `npm test -- payment` hangs at step 3/5 of the refund flow test.
|
|
56
|
-
|
|
57
|
-
Root-Cause Hypothesis:
|
|
58
|
-
- Most likely: The mock payment gateway is not responding to the refund callback, causing the test to wait indefinitely
|
|
59
|
-
- Evidence: The test uses a mock server on port 9999; logs show the request is sent but no response is received
|
|
60
|
-
- Alternative: A database connection pool exhaustion from a previous test not cleaning up properly
|
|
61
|
-
- Uncertainty: need to check if the mock server is started before the refund call
|
|
62
|
-
|
|
63
|
-
Confirming Step: Add a 5s timeout to the mock refund endpoint and log whether it receives the request. If the mock receives it but doesn't respond, the mock handler is missing the refund route.
|
|
64
|
-
|
|
65
|
-
Confidence: medium
|
|
66
|
-
|
|
67
|
-
Handoff: planning (once root cause is confirmed, the fix is likely a one-line mock handler addition)
|
|
68
|
-
```
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: bug-triage
|
|
2
|
-
version: 0.1.0
|
|
3
|
-
category: debugging
|
|
4
|
-
summary: Turn a bug report or failure symptom into a grounded root-cause hypothesis and a minimal next fix.
|
|
5
|
-
summary_vi: Biến bug report hoặc triệu chứng lỗi thành giả thuyết nguyên nhân gốc có căn cứ và bước sửa tối thiểu tiếp theo.
|
|
6
|
-
triggers:
|
|
7
|
-
- investigate this error
|
|
8
|
-
- debug this regression
|
|
9
|
-
- failing test or production issue
|
|
10
|
-
inputs:
|
|
11
|
-
- bug report
|
|
12
|
-
- logs or stack traces when available
|
|
13
|
-
- code paths involved in the failure
|
|
14
|
-
outputs:
|
|
15
|
-
- reproduction status
|
|
16
|
-
- root-cause hypothesis
|
|
17
|
-
- minimal next change
|
|
18
|
-
constraints:
|
|
19
|
-
- prove or narrow the cause before broad refactors
|
|
20
|
-
- call out confidence and uncertainty explicitly
|
|
21
|
-
related_skills:
|
|
22
|
-
- using-skills
|
|
23
|
-
- planning
|
|
24
|
-
- feature-delivery
|
|
25
|
-
- verification-before-completion
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
## Symptom
|
|
2
|
-
|
|
3
|
-
- What is failing and how it shows up
|
|
4
|
-
|
|
5
|
-
## Reproduction
|
|
6
|
-
|
|
7
|
-
- reproduced: yes or no
|
|
8
|
-
- notes:
|
|
9
|
-
|
|
10
|
-
## Root-Cause Hypothesis
|
|
11
|
-
|
|
12
|
-
- most likely cause:
|
|
13
|
-
- evidence:
|
|
14
|
-
- uncertainty:
|
|
15
|
-
|
|
16
|
-
## Next Change
|
|
17
|
-
|
|
18
|
-
- smallest fix or confirming experiment
|
|
19
|
-
|
|
20
|
-
## Confidence
|
|
21
|
-
|
|
22
|
-
- low, medium, or high
|
|
23
|
-
|
|
24
|
-
## Handoff
|
|
25
|
-
|
|
26
|
-
- Next skill: planning (if fix is non-trivial) or feature-delivery (if fix is already clear)
|