@olegkoval/agent-skills 1.94.0 → 1.94.2
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/.github/prompts/promptctl.prompt.md +12 -3
- package/.kiro/steering/promptctl.md +12 -3
- package/.windsurf/rules/promptctl.md +12 -3
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/conventions.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/implementation.md +5 -12
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/prover.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/quality.md +2 -12
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md +5 -12
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/agents/verifier.md +2 -6
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/output-format.md +2 -2
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md +1 -1
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +3 -5
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +13 -28
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +3 -13
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +2 -15
- package/adapters/claude/olko-github-pr/skills/lekker-review/references/revmux/profile.md +17 -196
- package/adapters/claude/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/adapters/claude/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/adapters/claude/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/adapters/claude/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/adapters/cursor/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/adapters/cursor/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/adapters/cursor/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/adapters/cursor/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/adapters/grok/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/adapters/grok/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/adapters/grok/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/adapters/grok/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/package.json +1 -1
- package/plugins/olko-apple-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-creative/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-garmin-kit/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-git-tools/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-github-pr/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/conventions.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/implementation.md +5 -12
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/prover.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/quality.md +2 -12
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/triage-logic.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/triage-quality.md +5 -12
- package/plugins/olko-github-pr/skills/lekker-review/references/agents/verifier.md +2 -6
- package/plugins/olko-github-pr/skills/lekker-review/references/output-format.md +2 -2
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md +1 -1
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md +3 -5
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-implementation.md +13 -28
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md +3 -13
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md +2 -15
- package/plugins/olko-github-pr/skills/lekker-review/references/revmux/profile.md +17 -196
- package/plugins/olko-obsidian/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-product/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-reflection/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-release/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-skill-meta/.claude-plugin/plugin.json +1 -1
- package/plugins/olko-skill-meta/skills/promptctl/SKILL.md +12 -3
- package/plugins/olko-skill-meta/skills/promptctl/references/LICENSE +201 -0
- package/plugins/olko-skill-meta/skills/promptctl/references/architecture-decision.yaml +94 -0
- package/plugins/olko-skill-meta/skills/promptctl/references/debug-error-context.yaml +85 -0
- package/plugins/olko-web-ops/.claude-plugin/plugin.json +1 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# architecture-decision.yaml
|
|
2
|
+
#
|
|
3
|
+
# Generate an Architecture Decision Record (ADR) from context and options.
|
|
4
|
+
# Useful for documenting technical decisions in a structured, reviewable format.
|
|
5
|
+
# Based on the Michael Nygard ADR format (https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions).
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# promptctl run architecture-decision \
|
|
9
|
+
# --title="Use PostgreSQL over MongoDB" \
|
|
10
|
+
# --context="We need a database for our user service. We have 50k users, complex queries, and ACID requirements." \
|
|
11
|
+
# --options="PostgreSQL, MongoDB, CockroachDB"
|
|
12
|
+
#
|
|
13
|
+
# Output: A complete ADR in Markdown format.
|
|
14
|
+
|
|
15
|
+
name: architecture-decision
|
|
16
|
+
description: Generate an Architecture Decision Record (ADR) from context and options
|
|
17
|
+
|
|
18
|
+
variables:
|
|
19
|
+
- name: title
|
|
20
|
+
description: Short title for the decision (e.g., "Use PostgreSQL over MongoDB")
|
|
21
|
+
required: true
|
|
22
|
+
- name: context
|
|
23
|
+
description: Background and constraints driving this decision
|
|
24
|
+
required: true
|
|
25
|
+
- name: options
|
|
26
|
+
description: Comma-separated list of options considered
|
|
27
|
+
default: ""
|
|
28
|
+
|
|
29
|
+
body: |
|
|
30
|
+
<context>
|
|
31
|
+
You are a senior software architect helping document a technical decision
|
|
32
|
+
using the Architecture Decision Record (ADR) format. ADRs capture important
|
|
33
|
+
decisions along with their context and consequences so future team members
|
|
34
|
+
understand why choices were made.
|
|
35
|
+
</context>
|
|
36
|
+
|
|
37
|
+
<task>
|
|
38
|
+
Generate a complete Architecture Decision Record for the following:
|
|
39
|
+
|
|
40
|
+
Title: {{.title}}
|
|
41
|
+
|
|
42
|
+
Context and constraints:
|
|
43
|
+
{{.context}}
|
|
44
|
+
|
|
45
|
+
{{if .options}}
|
|
46
|
+
Options being considered:
|
|
47
|
+
{{.options}}
|
|
48
|
+
{{end}}
|
|
49
|
+
</task>
|
|
50
|
+
|
|
51
|
+
<output_format>
|
|
52
|
+
Write the ADR in Markdown using exactly this structure:
|
|
53
|
+
|
|
54
|
+
# ADR: [Title]
|
|
55
|
+
|
|
56
|
+
## Status
|
|
57
|
+
Proposed
|
|
58
|
+
|
|
59
|
+
## Context
|
|
60
|
+
[Expand on the provided context. Include technical constraints,
|
|
61
|
+
business requirements, team expertise, and timeline pressures.]
|
|
62
|
+
|
|
63
|
+
## Options Considered
|
|
64
|
+
[For each option, provide:]
|
|
65
|
+
### Option N: [Name]
|
|
66
|
+
- **Pros:** [List advantages]
|
|
67
|
+
- **Cons:** [List disadvantages]
|
|
68
|
+
- **Effort:** [Low/Medium/High]
|
|
69
|
+
|
|
70
|
+
## Decision
|
|
71
|
+
[State the decision clearly. Start with "We will use..."]
|
|
72
|
+
|
|
73
|
+
## Consequences
|
|
74
|
+
|
|
75
|
+
### Positive
|
|
76
|
+
- [List benefits of this decision]
|
|
77
|
+
|
|
78
|
+
### Negative
|
|
79
|
+
- [List trade-offs and downsides]
|
|
80
|
+
|
|
81
|
+
### Risks
|
|
82
|
+
- [List risks and how to mitigate them]
|
|
83
|
+
|
|
84
|
+
## References
|
|
85
|
+
- [Relevant links, docs, or prior art]
|
|
86
|
+
</output_format>
|
|
87
|
+
|
|
88
|
+
<constraints>
|
|
89
|
+
- Be objective - present real trade-offs, not just justify one choice
|
|
90
|
+
- Include specific technical details, not generic advice
|
|
91
|
+
- Consequences should be concrete and measurable where possible
|
|
92
|
+
- Keep the entire ADR under 500 words
|
|
93
|
+
- If no options are provided, infer reasonable alternatives from the context
|
|
94
|
+
</constraints>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# debug-error-context.yaml
|
|
2
|
+
#
|
|
3
|
+
# Debug template that provides full error context to an LLM.
|
|
4
|
+
# Pass the failing file, the error message, and optionally a stack trace
|
|
5
|
+
# to get a structured root cause analysis and fix suggestions.
|
|
6
|
+
#
|
|
7
|
+
# Usage:
|
|
8
|
+
# promptctl run debug-error-context --file=src/db.go \
|
|
9
|
+
# --error_message="nil pointer dereference" \
|
|
10
|
+
# --stack_trace="goroutine 1 [running]: main.handleRequest(...) db.go:42"
|
|
11
|
+
#
|
|
12
|
+
# Output: Structured JSON with root cause analysis and suggested fixes.
|
|
13
|
+
|
|
14
|
+
name: debug-error-context
|
|
15
|
+
description: Diagnose errors with full context - file, error message, and stack trace
|
|
16
|
+
|
|
17
|
+
variables:
|
|
18
|
+
- name: file
|
|
19
|
+
description: Path to the file where the error occurs
|
|
20
|
+
required: true
|
|
21
|
+
- name: error_message
|
|
22
|
+
description: The error message or exception text
|
|
23
|
+
required: true
|
|
24
|
+
- name: stack_trace
|
|
25
|
+
description: Stack trace or backtrace (if available)
|
|
26
|
+
default: ""
|
|
27
|
+
|
|
28
|
+
body: |
|
|
29
|
+
<context>
|
|
30
|
+
You are a senior software engineer debugging a production issue.
|
|
31
|
+
Analyze the error in the context of the source code and provide
|
|
32
|
+
a precise diagnosis with actionable fixes.
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<task>
|
|
36
|
+
The following error occurred in this file:
|
|
37
|
+
|
|
38
|
+
Error: {{.error_message}}
|
|
39
|
+
|
|
40
|
+
{{if .stack_trace}}
|
|
41
|
+
Stack trace:
|
|
42
|
+
{{.stack_trace}}
|
|
43
|
+
{{end}}
|
|
44
|
+
|
|
45
|
+
Analyze the source code below to determine the root cause.
|
|
46
|
+
</task>
|
|
47
|
+
|
|
48
|
+
<file name="{{.file_name}}" language="{{.file_ext}}">
|
|
49
|
+
{{.file_content}}
|
|
50
|
+
</file>
|
|
51
|
+
|
|
52
|
+
<output_contract>
|
|
53
|
+
Return strictly valid JSON. No explanations outside JSON.
|
|
54
|
+
</output_contract>
|
|
55
|
+
|
|
56
|
+
<required_structure>
|
|
57
|
+
{
|
|
58
|
+
"root_cause": "Clear explanation of why this error happens",
|
|
59
|
+
"failing_line": 0,
|
|
60
|
+
"error_type": "Category (e.g., null reference, type error, race condition, logic error)",
|
|
61
|
+
"contributing_factors": [
|
|
62
|
+
"Other code patterns that contribute to this bug"
|
|
63
|
+
],
|
|
64
|
+
"suggested_fixes": [
|
|
65
|
+
{
|
|
66
|
+
"description": "What to change",
|
|
67
|
+
"line": 0,
|
|
68
|
+
"before": "Current code snippet",
|
|
69
|
+
"after": "Fixed code snippet",
|
|
70
|
+
"confidence": "high | medium | low"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"prevention": [
|
|
74
|
+
"How to prevent similar bugs in the future"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
</required_structure>
|
|
78
|
+
|
|
79
|
+
<constraints>
|
|
80
|
+
- Focus on the most likely root cause first
|
|
81
|
+
- Show exact code changes (before/after) for each fix
|
|
82
|
+
- Rate confidence for each suggestion
|
|
83
|
+
- Keep fixes minimal - change only what is necessary
|
|
84
|
+
- If the stack trace points to a specific line, start analysis there
|
|
85
|
+
</constraints>
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ section):
|
|
|
16
16
|
* A hand-written interface/type that duplicates an existing Zod schema:
|
|
17
17
|
should be `z.infer<typeof zSchema>` so the schema stays the single source
|
|
18
18
|
of truth. (Grep for a matching z-schema in the same feature folder.)
|
|
19
|
-
* Raw `string` used for
|
|
19
|
+
* Raw `string` used for an external identifier or entity ID where a branded
|
|
20
20
|
`ID<'Customer'>` (or similar) type exists and is used elsewhere.
|
|
21
21
|
* A union typed as `as readonly string[]` / a hand-rolled `is...` guard where
|
|
22
22
|
a `z.enum([...])` + `z.infer` would give validation, narrowing, and the
|
|
@@ -46,12 +46,12 @@ Axes to cover:
|
|
|
46
46
|
Use title "Fix addresses the symptom", name the root cause and where it still
|
|
47
47
|
lives, and point `fix` at the producing code. Quiet when the root cause is
|
|
48
48
|
fixed, the mitigation fully resolves the defect, or the PR is not a bug fix.
|
|
49
|
-
- Integration Contracts:
|
|
49
|
+
- Integration Contracts: unsupported external API assumptions, webhook
|
|
50
50
|
idempotency, external API pagination not handled.
|
|
51
51
|
- Rollout safety (external writes): when the diff changes what is WRITTEN to
|
|
52
52
|
another system (an API payload, field mapping, or a DB write into a system
|
|
53
53
|
this service does not own), state whether the PR has a feature flag
|
|
54
|
-
(
|
|
54
|
+
(a guard around the new write) or a
|
|
55
55
|
documented revert plan (PR body or code comment). Look in the diff and in the
|
|
56
56
|
PR body in CONTEXT_FILE. When WORKTREE_PATH is available, trace the changed
|
|
57
57
|
write through unchanged callers and flag guards before deciding either is
|
|
@@ -89,16 +89,9 @@ Do not report a stateful/integration finding without this boundary object. If
|
|
|
89
89
|
the production entry point or downstream consumer cannot be identified, mark
|
|
90
90
|
the claim as unverified rather than inferring behavior from a helper alone.
|
|
91
91
|
|
|
92
|
-
GraphQL pagination
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
(b) Check that all pages are fetched (a loop or recursion using endCursor): a single-page fetch is a bug, Critical.
|
|
96
|
-
(c) Check the page size: must be 250 (Shopify max). If any other size is used without a code comment explaining why, flag as Important.
|
|
97
|
-
Set `rule: "GQL-1"` on any Critical finding raised under this axis.
|
|
98
|
-
|
|
99
|
-
Setting rule tags the finding as a house hard rule: it keeps its Critical
|
|
100
|
-
severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine GQL-1
|
|
101
|
-
violation: never to shield an ordinary finding from verification.
|
|
92
|
+
- GraphQL pagination: when the consumer requires a complete result, verify that
|
|
93
|
+
the query exposes continuation metadata and the caller follows it. Check
|
|
94
|
+
page-size limits against the target API's contract.
|
|
102
95
|
|
|
103
96
|
CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
|
|
104
97
|
SENTRY_SIGNALS: read key "sentrySignals" from CONTEXT_FILE.
|
|
@@ -40,7 +40,7 @@ context in `DIFF_FILE`. Return `attempted: false, proven: false,
|
|
|
40
40
|
outcome: "not_attempted"` with an honest one-sentence `reason` when any of these
|
|
41
41
|
hold:
|
|
42
42
|
|
|
43
|
-
- The failure path requires live IO (
|
|
43
|
+
- The failure path requires live IO (an external API, a real DB, the
|
|
44
44
|
network) and the repo has no test infra to fake it cheaply.
|
|
45
45
|
- The buggy logic is not importable/reachable from a test without large
|
|
46
46
|
scaffolding (deep framework wiring, a webhook server bootstrap).
|
|
@@ -13,7 +13,7 @@ Axes to cover:
|
|
|
13
13
|
- Error Handling: unhandled promise rejections, empty catch blocks, missing
|
|
14
14
|
retries on transient failures, no dead-letter for failed jobs.
|
|
15
15
|
- Schema/Migration: NOT NULL without default, rename without two-step,
|
|
16
|
-
|
|
16
|
+
stale generated database bindings.
|
|
17
17
|
- Naming/Typos: wrong casing convention, mixed conventions in same scope,
|
|
18
18
|
misspelled identifiers (these are bugs-in-waiting).
|
|
19
19
|
- Derived-value consistency: when the diff introduces a transform of some input
|
|
@@ -28,14 +28,6 @@ Axes to cover:
|
|
|
28
28
|
```
|
|
29
29
|
- Env vars: dead vars, renamed without migration, wrong fallback operator
|
|
30
30
|
(?? vs ||), type mismatch, leaked in logs.
|
|
31
|
-
- TypeScript type safety (TS-1): flag every type cast (`as X`, `<X>expr`)
|
|
32
|
-
and every use of `any`. Test files: only flag blatantly omitted types
|
|
33
|
-
(e.g. `any[]` on a clearly-typed list). All others: Critical. Quote the
|
|
34
|
-
cast, explain the correct type, show the fix. Ask if they're Harry Potter.
|
|
35
|
-
Set `rule: "TS-1"` on the finding.
|
|
36
|
-
- No JavaScript files (TS-2): if the diff adds any `.js` file to a non-Liquid
|
|
37
|
-
theme repo, flag as Critical: must be `.ts`. Set `rule: "TS-2"` on the
|
|
38
|
-
finding.
|
|
39
31
|
- Dependency changes. Skip this axis entirely unless the diff touches
|
|
40
32
|
`package.json`, a lockfile, or a vendored dependency. Where it applies:
|
|
41
33
|
(a) A version bump is a behaviour change nobody in this PR wrote. If neither
|
|
@@ -55,9 +47,7 @@ Axes to cover:
|
|
|
55
47
|
Raise NO naming, comment, complexity, or hard-rule finding inside a lockfile
|
|
56
48
|
or a `node_modules` path.
|
|
57
49
|
|
|
58
|
-
|
|
59
|
-
severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine
|
|
60
|
-
TS-1/TS-2 violation: never to shield an ordinary finding from verification.
|
|
50
|
+
Set `rule` to the ID of a configured hard rule only when the diff demonstrates a violation.
|
|
61
51
|
|
|
62
52
|
CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
|
|
63
53
|
Note: if CI_STATUS shows a failing build or test check, report it as a
|
|
@@ -9,12 +9,12 @@ Axes to cover (Critical/Important only):
|
|
|
9
9
|
- Business Logic / AC coverage: for each AC below, mark ✅ met / ⚠️ partial / ❌ missing
|
|
10
10
|
AC_LIST: read key "acList" from CONTEXT_FILE.
|
|
11
11
|
- Scalability: N+1 queries, missing pagination, unbounded collections, missing rate-limit
|
|
12
|
-
- Integration Contracts:
|
|
12
|
+
- Integration Contracts: external API contract violations, webhook idempotency not handled
|
|
13
13
|
- Correctness: off-by-one, wrong operator, missing null guard
|
|
14
14
|
- Rollout safety (external writes): when the diff changes what is WRITTEN to
|
|
15
15
|
another system (an API payload, field mapping, or a DB write into a system
|
|
16
16
|
this service does not own), state whether the PR has a feature flag
|
|
17
|
-
(
|
|
17
|
+
(a guard around the new write) or a
|
|
18
18
|
documented revert plan (PR body or code comment). Look in the diff and in the
|
|
19
19
|
PR body in CONTEXT_FILE. When WORKTREE_PATH is available, trace the changed
|
|
20
20
|
write through unchanged callers and flag guards before deciding either is
|
|
@@ -9,20 +9,13 @@ Axes to cover (Critical/Important only):
|
|
|
9
9
|
- Security: auth bypass, injection, missing permission checks, secrets in logs
|
|
10
10
|
- Data Integrity: missing transactions, silent data loss, partial-failure no rollback
|
|
11
11
|
- Error Handling: unhandled rejections, empty catch blocks, missing retries
|
|
12
|
-
- Schema/Migration: NOT NULL without default,
|
|
12
|
+
- Schema/Migration: NOT NULL without default, stale generated database bindings
|
|
13
13
|
- Env vars: dead vars, leaked in logs
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
set `rule: "TS-2"`
|
|
18
|
-
- GraphQL pagination (GQL-1): nodes connection without pageInfo, or missing
|
|
19
|
-
multi-page fetch, or page size != 250 without comment: Critical/Important,
|
|
20
|
-
set `rule: "GQL-1"` when Critical
|
|
14
|
+
- GraphQL pagination: when the consumer requires a complete result, verify that
|
|
15
|
+
the query exposes continuation metadata and the caller follows it. Check
|
|
16
|
+
page-size limits against the target API's contract.
|
|
21
17
|
|
|
22
|
-
|
|
23
|
-
severity only after rule-specific validation and skips runtime challenges. Only set it for a genuine
|
|
24
|
-
TS-1/TS-2/GQL-1 violation: never to shield an ordinary finding from
|
|
25
|
-
verification.
|
|
18
|
+
Set `rule` to the ID of a configured hard rule only when the diff demonstrates a violation.
|
|
26
19
|
|
|
27
20
|
CI_STATUS: read key "ciStatus" from the JSON file CONTEXT_FILE.
|
|
28
21
|
If CI_STATUS shows failing build/test: report it as Critical.
|
|
@@ -64,11 +64,7 @@ For all other non-empty `rule` tags, run exactly two checks:
|
|
|
64
64
|
grep "^+" "$DIFF_FILE" | grep "<snippet>"
|
|
65
65
|
```
|
|
66
66
|
2. **Rule applicability**: read the exact `HOUSE_RULES_FILE` path from the task
|
|
67
|
-
message, then confirm the code really violates the rule as written
|
|
68
|
-
e.g. an `as const` is not a type cast in
|
|
69
|
-
the TS-1 sense; a `nodes` query that legitimately fetches a single known
|
|
70
|
-
node with a documented comment may satisfy GQL-1; a `.js` file inside a
|
|
71
|
-
Liquid theme repo is exempt from TS-2.
|
|
67
|
+
message, then confirm the code really violates the rule as written in the configured house rules, including any stated exception.
|
|
72
68
|
|
|
73
69
|
Outcome: both checks pass -> `confirmed` at Critical, with `reasoning` naming
|
|
74
70
|
the rule and quoting the violating snippet. Either check fails -> `dropped`,
|
|
@@ -297,7 +293,7 @@ Critical finding
|
|
|
297
293
|
Common failure modes here:
|
|
298
294
|
- Assuming how a `your org's shared internal` package behaves without reading the source
|
|
299
295
|
- Assuming the DB schema based on the model name rather than the Prisma schema
|
|
300
|
-
- Assuming
|
|
296
|
+
- Assuming an external API’s behavior from memory rather than the docs
|
|
301
297
|
- Assuming a variable is always truthy/falsy without checking where it is set
|
|
302
298
|
|
|
303
299
|
If any assumption is unverified -> resolve it now (read the source, check the
|
|
@@ -61,9 +61,9 @@ Cover, in roughly this order:
|
|
|
61
61
|
- **The problem / goal: why this PR exists.** What was broken, missing, or
|
|
62
62
|
needed? Pull this from the Linear ticket (the AC_LIST and ticket summary),
|
|
63
63
|
not just the diff. State the user-facing or business outcome the change is
|
|
64
|
-
reaching for ("
|
|
64
|
+
reaching for ("The integration can sync contact records automatically instead
|
|
65
65
|
of hand-keying them", "unblocks the PUT/update flow that depends on the
|
|
66
|
-
|
|
66
|
+
required metadata being populated").
|
|
67
67
|
- **What it does: the mechanism, in plain terms.** The shape of the solution:
|
|
68
68
|
the key entry points, the data flow, the gating/safety mechanisms, and how the
|
|
69
69
|
pieces fit. Name the design choices and *why each one was made*: kill switch
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-consistency.md
CHANGED
|
@@ -17,7 +17,7 @@ exclude, retry/fail) is made in two code paths that can both run for the same
|
|
|
17
17
|
input. The usual shapes:
|
|
18
18
|
|
|
19
19
|
- a client-side guard and the server-side validator behind it (a checkout UI
|
|
20
|
-
extension and the
|
|
20
|
+
extension and the downstream handler, a form check and the API handler);
|
|
21
21
|
- a UI filter and the query that feeds it;
|
|
22
22
|
- a webhook handler and the cron reconciler that backfills the same state;
|
|
23
23
|
- a feature flag read in two clients that must agree on the same gate;
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-conventions.md
CHANGED
|
@@ -32,15 +32,13 @@ Axes to cover:
|
|
|
32
32
|
- Generated code (org-conventions §6): a changed `.sql` / `.graphql` /
|
|
33
33
|
`.json` schema / `prisma/schema.prisma` whose generated artifact is absent
|
|
34
34
|
from the diff (or the reverse) - major. Raise NO naming, comment, or
|
|
35
|
-
complexity finding inside a `generated/` directory.
|
|
36
|
-
|
|
37
|
-
- Commits (org-conventions §5): non-conventional or vague commit subjects, and
|
|
38
|
-
any Claude Code / assistant mention in the commit or PR text.
|
|
35
|
+
complexity finding inside a `generated/` directory.
|
|
36
|
+
- Commits: apply the conventions documented in the project profile.
|
|
39
37
|
- Type-system idioms:
|
|
40
38
|
* A hand-written interface/type that duplicates an existing Zod schema -
|
|
41
39
|
should be `z.infer<typeof zSchema>` so the schema stays the single source
|
|
42
40
|
of truth. (Grep for a matching z-schema in the same feature folder.)
|
|
43
|
-
* Raw `string` used for
|
|
41
|
+
* Raw `string` used for an external identifier or entity ID where a branded
|
|
44
42
|
`ID<'Customer'>` (or similar) type exists and is used elsewhere.
|
|
45
43
|
* A union typed as `as readonly string[]` / a hand-rolled `is...` guard where
|
|
46
44
|
a `z.enum([...])` + `z.infer` would give validation, narrowing, and the
|
|
@@ -41,36 +41,21 @@ Axes to cover:
|
|
|
41
41
|
missing DB indexes for new query patterns.
|
|
42
42
|
- Time/Space Complexity: O(n²) where linear exists, large payloads in memory,
|
|
43
43
|
sort/dedup on large arrays that could be done at DB level.
|
|
44
|
-
- Integration Contracts:
|
|
44
|
+
- Integration Contracts: unsupported external API assumptions, webhook
|
|
45
45
|
idempotency, external API pagination not handled.
|
|
46
|
-
- GraphQL pagination
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
finding. Where it does apply, ask whether the change should ship behind a flag:
|
|
57
|
-
(a) a client should validate it before everyone sees it; (b) it changes data
|
|
58
|
-
shape or what gets written; (c) it touches orders, money, or fulfilment; (d) it
|
|
59
|
-
cannot be verified without real client data or volume. Do NOT raise it for pure
|
|
60
|
-
UI/copy with no data change, a bug fix that is strictly better and obviously
|
|
61
|
-
correct, internal/admin-only surfaces, or work fully covered by tests and
|
|
62
|
-
verifiable in staging. Tie-breaker: if you would not be comfortable fixing it
|
|
63
|
-
forward at 2am, it needs a flag. Name which of (a)-(d) applies.
|
|
64
|
-
Severity: major at most, usually minor - this is a rollout judgement call, not
|
|
65
|
-
a defect. NEVER title this with a bracketed hard-rule tag (that would force
|
|
66
|
-
critical and imply a policy violation). Never invent a concrete flag key as
|
|
67
|
-
though it exists: flag keys must be confirmed against Reflag, so say a flag is
|
|
68
|
-
needed without naming one.
|
|
69
|
-
Also raise as a structural concern (severity major) when a diff BOTH adds a
|
|
70
|
-
column/table AND changes what is read or written - the SOP requires splitting
|
|
71
|
-
that into expand / migrate / read-switch / contract PRs. Name the split.
|
|
46
|
+
- GraphQL pagination: when the consumer requires a complete result, verify that
|
|
47
|
+
the query exposes continuation metadata and the caller follows it. Check
|
|
48
|
+
page-size limits against the target API's contract.
|
|
49
|
+
- Feature flags: when the repository has a rollout mechanism and a changed
|
|
50
|
+
path introduces a risky write or changes externally visible behavior, check
|
|
51
|
+
for a guard or a documented rollback plan. Trace the actual write through
|
|
52
|
+
its callers and configuration before reporting an omission. Refer to the
|
|
53
|
+
repository's own guidance for exemptions and avoid proposing invented flag keys.
|
|
54
|
+
Rollout advice on its own is noncritical. Reserve hard-rule tags for proven
|
|
55
|
+
violations of configured project rules.
|
|
72
56
|
|
|
73
|
-
|
|
57
|
+
|
|
58
|
+
Start the finding title with the bracketed rule ID when it violates a configured hard rule in `{{PROFILE}}`.
|
|
74
59
|
|
|
75
60
|
Rules:
|
|
76
61
|
- Every finding must trace to a `+` line in the diff, with one exception: an
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-quality.md
CHANGED
|
@@ -27,7 +27,7 @@ Axes to cover:
|
|
|
27
27
|
silent AND still escapes. Do not accept "it reports correctly" as covering the
|
|
28
28
|
block; the report and the control flow are separate claims.
|
|
29
29
|
- Schema/Migration: NOT NULL without default, rename without two-step,
|
|
30
|
-
|
|
30
|
+
stale generated database bindings.
|
|
31
31
|
- Naming/Typos: wrong casing convention, mixed conventions in same scope,
|
|
32
32
|
misspelled identifiers (these are bugs-in-waiting).
|
|
33
33
|
- Derived-value consistency: when the diff introduces a transform of some input
|
|
@@ -44,13 +44,6 @@ Axes to cover:
|
|
|
44
44
|
|
|
45
45
|
- Env vars: dead vars, renamed without migration, wrong fallback operator
|
|
46
46
|
(?? vs ||), type mismatch, leaked in logs.
|
|
47
|
-
- TypeScript type safety (TS-1): flag every type cast (`as X`, `<X>expr`)
|
|
48
|
-
and every use of `any`. Test files: only flag blatantly omitted types
|
|
49
|
-
(e.g. `any[]` on a clearly-typed list). All others: critical. Quote the
|
|
50
|
-
cast, explain the correct type, show the fix. Ask if they're Harry Potter.
|
|
51
|
-
Title the finding `[TS-1] ...`.
|
|
52
|
-
- No JavaScript files (TS-2): if the diff adds any `.js` file to a non-Liquid
|
|
53
|
-
theme repo, flag as critical - must be `.ts`. Title the finding `[TS-2] ...`.
|
|
54
47
|
- Dependency changes. Skip this axis entirely unless the diff touches
|
|
55
48
|
`package.json`, a lockfile, or a vendored dependency. Where it applies:
|
|
56
49
|
(a) A version bump is a behaviour change nobody in this PR wrote. If neither
|
|
@@ -65,13 +58,10 @@ Axes to cover:
|
|
|
65
58
|
explanation, is critical: the lockfile is what actually ships.
|
|
66
59
|
(d) A new direct dependency that duplicates something already in the stack is
|
|
67
60
|
major. Name the existing thing that already solves it.
|
|
68
|
-
Raise NO naming, comment, complexity, or
|
|
61
|
+
Raise NO naming, comment, complexity, or project-convention finding inside a lockfile or a
|
|
69
62
|
`node_modules` path.
|
|
70
63
|
|
|
71
|
-
|
|
72
|
-
(read it there before applying either). A finding for one of them MUST have its
|
|
73
|
-
title start with the bracketed tag, e.g. `[TS-1] ...` or `[TS-2] ...`, so the
|
|
74
|
-
caller can recognize it as a policy violation rather than an ordinary finding.
|
|
64
|
+
When the finding violates a configured hard rule in `{{PROFILE}}`, start its title with the bracketed rule ID, such as `[EXAMPLE-1]`.
|
|
75
65
|
|
|
76
66
|
CI status, Sentry signals, and existing reviews may be present in `{{CONTEXT}}` -
|
|
77
67
|
read what is there before forming an opinion, and skip anything that is absent
|
package/plugins/olko-github-pr/skills/lekker-review/references/revmux/lenses/lekker-test-quality.md
CHANGED
|
@@ -131,21 +131,8 @@ g) Mock smell - test the behavior, not the way it's built
|
|
|
131
131
|
banner that appears only when the fetch rejects). Even then, prefer an
|
|
132
132
|
injected simple fake over a module-level spy, and assert what the user sees.
|
|
133
133
|
|
|
134
|
-
h)
|
|
135
|
-
|
|
136
|
-
the diff: `__tests__/` placement beside the source, `.test.ts` vs
|
|
137
|
-
`.test.tsx`, English-sentence test names, `describe` nesting <= 2,
|
|
138
|
-
`afterEach(cleanup)`, `retry: false` on the test QueryClient (major - its
|
|
139
|
-
absence hangs the suite on a failing query), the getByRole → getByLabelText
|
|
140
|
-
→ getByText → getByTestId priority, module-boundary mocking, `safeParse` for
|
|
141
|
-
Zod schemas, and the typed `it.each` matrix with AC tags plus the
|
|
142
|
-
exhaustiveness assertion whenever behaviour depends on 3+ independent inputs.
|
|
143
|
-
A `vi.mock('@lib/common/…')` inside `common/` is major, not style: the
|
|
144
|
-
alias resolves only from `web/`, so the mock silently does nothing and the
|
|
145
|
-
test passes against the real module. Quote the line, give the relative path
|
|
146
|
-
as the fix.
|
|
147
|
-
A comment explaining WHY a test exists (a captured past bug, a subtle
|
|
148
|
-
contract) is sanctioned - never flag it as over-commenting.
|
|
134
|
+
h) Project test conventions
|
|
135
|
+
Apply the test conventions documented in `{{PROFILE}}` to the changed tests.
|
|
149
136
|
|
|
150
137
|
Report each per-line issue as:
|
|
151
138
|
`test-file:line - <concise description of the gap or weakness>`
|