feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s
This commit is contained in:
1 parent
29632ff0ce
commit
f5d8f6f11b
124 files changed
+1250
-8138
No files matched your search
@@ -5,15 +5,49 @@ description: Use before implementation when a proposed code, configuration, data
|
||||
|
||||
# Change Impact Analysis
|
||||
|
||||
Use before a change when its consumers, compatibility effects, or blast radius are uncertain.
|
||||
Map what a proposed change touches before anyone builds it. Do not implement the proposal unless asked.
|
||||
|
||||
## Workflow
|
||||
## When to use
|
||||
|
||||
1. Define the proposed change and the behavior or contract it affects.
|
||||
2. Locate direct callers, related implementations, shared helpers, configuration, generated output, and relevant tests. Start with exact-path and symbol searches; broaden only when the flow is unclear.
|
||||
3. Trace likely impact through runtime paths, persisted data, client integrations, deployment, and documentation as applicable.
|
||||
4. Identify compatibility concerns, failure modes, security or data-loss risks, and dependencies on version or environment. Before confirming external compatibility or recommending an approach, MUST apply the planning checkpoint in `technical-research` and attach matching evidence or mark the assumption unresolved.
|
||||
5. Separate confirmed impacts from assumptions and unknowns. Do not treat a possible downstream effect as a fact without evidence.
|
||||
6. Recommend proportionate verification tied to the risks found.
|
||||
- Use it when consumers, compatibility effects, or the blast radius of a change are uncertain.
|
||||
- If the proposal is too vague to name the affected behavior or contract, run `work-item-definition` first.
|
||||
- Skip it when callers and effects are already clear, such as a local rename with known callers.
|
||||
|
||||
Return a concise impact map: affected areas, evidence, risks, unknowns, and checks. Do not implement the proposal unless asked.
|
||||
## 1. Define the change
|
||||
|
||||
State the proposed change and the behavior, contract, or data it affects, in one or two sentences.
|
||||
|
||||
## 2. Find what it touches
|
||||
|
||||
Follow the repository route of `research`: exact paths and symbols first, semantic search for unknown flows, and broaden only when the flow is unclear. Check each of these that applies:
|
||||
|
||||
- Code: direct callers, related implementations, shared helpers, and tests.
|
||||
- Contracts: public APIs, events, file formats, configuration keys, and generated output.
|
||||
- Data: schemas, persisted data, migrations, caches, and readers outside the application such as reports, exports, ETL, or scheduled jobs.
|
||||
- Consumers outside this repository: other services or repositories, external API clients, and integrations.
|
||||
- Operations: deployment, environments, feature flags, monitoring, and documentation.
|
||||
|
||||
## 3. Assess the risk
|
||||
|
||||
- Name compatibility concerns, failure modes, and security or data-loss risks, and rate each affected area high, medium, or low.
|
||||
- Before confirming external compatibility or recommending an approach, apply the planning checkpoint in `technical-research`; attach matching evidence or mark the assumption unresolved.
|
||||
- Separate confirmed impacts from assumptions and unknowns. A possible downstream effect is not a fact without evidence.
|
||||
|
||||
## 4. Plan verification and rollout
|
||||
|
||||
- Recommend proportionate checks tied to the risks found.
|
||||
- For risky changes to schemas, APIs, data, or shared behavior, recommend a rollout order (for example expand, migrate, then contract), a feature flag or staged release where it fits, and a rollback path.
|
||||
|
||||
## 5. Report
|
||||
|
||||
```text
|
||||
Change: <one or two sentences>
|
||||
|
||||
| Area | Impact | Risk | Evidence |
|
||||
| --- | --- | --- | --- |
|
||||
| <code, contract, data, consumer, or operations item> | <what changes> | high / medium / low | <file:line, search, or source> |
|
||||
|
||||
Unknowns: <assumption and how to resolve it>
|
||||
Checks: <verification tied to each high or medium risk>
|
||||
Rollout: <order, flag, and rollback, only for risky changes>
|
||||
```
|
||||
@@ -44,6 +44,28 @@
|
||||
"Does not remove the flag or its code"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"prompt": "Rename the private helper `calcTotal` to `calculateTotal` in `src/cart/totals.ts`. It is not exported, and its only two callers are in the same file.",
|
||||
"expected_output": "Should not trigger. The change is a local rename of a private helper with clear callers, so no impact analysis is needed. Should do the rename directly when asked, updating both callers.",
|
||||
"assertions": [
|
||||
"Does not produce an impact map or blast radius analysis",
|
||||
"Does not run broad repository searches for consumers",
|
||||
"Renames calcTotal and updates both callers in src/cart/totals.ts"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"prompt": "We should make the reporting stuff faster somehow. What is the impact?",
|
||||
"expected_output": "The proposal is too vague to name the affected behavior or contract. Should route to work-item-definition to define the objective, scope, and criteria first, instead of guessing an impact map.",
|
||||
"assertions": [
|
||||
"States that the proposal is too vague to analyze impact",
|
||||
"Uses or recommends work-item-definition first",
|
||||
"Does not present an invented impact map as fact"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
---
|
||||
name: work-item-definition
|
||||
description: Use when a request is too vague to scope, estimate, or verify. Define the objective, scope, acceptance criteria, assumptions, dependencies, and only material open questions; do not implement it.
|
||||
---
|
||||
|
||||
# Work Item Definition
|
||||
|
||||
Use when a request lacks enough detail to estimate or verify the intended technical outcome.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. State the user or system outcome in concrete terms.
|
||||
2. Define what is in scope and what is explicitly out of scope based on the request and current behavior.
|
||||
3. Write observable acceptance criteria, including relevant failure or edge cases.
|
||||
4. Record constraints, dependencies, compatibility requirements, and assumptions separately. Before accepting external technology constraints as established, MUST apply the planning checkpoint in `technical-research`; carry its evidence or unresolved gaps into the work item.
|
||||
5. Ask only questions whose answers would materially change behavior, contracts, permissions, or acceptance. Choose safe reversible defaults for minor implementation details.
|
||||
6. Identify unresolved risks and a proportionate verification approach.
|
||||
|
||||
Return a bounded work item with objective, scope, criteria, assumptions, dependencies, and open questions. Do not invent business rules or start implementation unless asked.
|
||||
@@ -1,49 +0,0 @@
|
||||
{
|
||||
"skill_name": "work-item-definition",
|
||||
"evals": [
|
||||
{
|
||||
"id": 1,
|
||||
"prompt": "Ticket from product: \"Users should be able to export their data.\" That's all it says. Our app is a B2B time-tracking SaaS with workspaces, projects, and time entries. Turn this into something the team can estimate.",
|
||||
"expected_output": "Should state the outcome in concrete terms. Should define in-scope and explicitly out-of-scope items. Should write observable acceptance criteria including failure or edge cases (e.g. empty data, large exports, permission denied). Should record constraints, dependencies, compatibility requirements, and assumptions separately. Should ask only material open questions (e.g. who may export: individual user vs workspace admin; which data; which format; GDPR-style full export vs report export). Should identify risks and a verification approach. Should not invent business rules as facts and should not implement.",
|
||||
"assertions": [
|
||||
"Contains an objective stated as a concrete user or system outcome",
|
||||
"Contains separate in-scope and out-of-scope sections",
|
||||
"Contains observable acceptance criteria",
|
||||
"Includes at least one failure or edge case criterion such as unauthorized access or an empty or very large export",
|
||||
"Lists assumptions separately from constraints and dependencies",
|
||||
"Open questions are limited to material ones such as who may export, which data, or format",
|
||||
"Does not present invented business rules as established requirements",
|
||||
"Does not include implementation code"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"prompt": "Define a work item: \"Add SSO login using Azure AD B2C's new native passkey support, it works with our current MSAL.js 2.x setup.\"",
|
||||
"expected_output": "Should produce a bounded work item. The request contains external technology claims (Azure AD B2C passkey support, MSAL.js 2.x compatibility); before accepting them as established constraints the agent must apply the technical-research planning checkpoint and carry the evidence or unresolved gaps into the work item. Should not simply restate the claim as fact. Should include objective, scope, acceptance criteria, assumptions, dependencies, open questions, and risks with a verification approach.",
|
||||
"assertions": [
|
||||
"Applies or references the technical-research planning checkpoint for the Azure AD B2C and MSAL.js claims",
|
||||
"Marks the passkey support and MSAL.js 2.x compatibility as evidenced or explicitly unresolved rather than assumed",
|
||||
"Contains objective, scope, acceptance criteria, assumptions, dependencies, and open questions",
|
||||
"Lists MSAL.js and Azure AD B2C as dependencies",
|
||||
"Identifies unresolved risks and a verification approach",
|
||||
"Does not start implementing the login flow"
|
||||
],
|
||||
"files": []
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"prompt": "Make a work item for: \"The settings page Save button should show a spinner while saving.\" Ask me anything you need first.",
|
||||
"expected_output": "This request is already fairly concrete. Despite the invitation to ask anything, the agent should ask only questions that materially change behavior, contracts, permissions, or acceptance, and choose safe reversible defaults for minor details (spinner style, exact placement). Should produce a compact work item with objective, scope, acceptance criteria (including save failure and double-click behavior), assumptions, and few or no open questions.",
|
||||
"assertions": [
|
||||
"Produces the work item rather than only a list of questions",
|
||||
"Asks no questions about minor implementation details such as spinner style or color",
|
||||
"States safe defaults as assumptions for minor details",
|
||||
"Includes an acceptance criterion for the save failure state",
|
||||
"Includes an acceptance criterion about preventing duplicate submissions while saving, or lists it as an open question",
|
||||
"Keeps scope bounded to the Save button behavior"
|
||||
],
|
||||
"files": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user