- Resolve Python 3.11+ through shared Resolve-Python.ps1/resolve-python.sh, which probe python, python3 and py -3 and skip the Windows Store alias. Build and capability checks fail early with an actionable message; doctor reports missing Python and the skipped hooks. - Fix check-capabilities.sh comparing only the major version. - Register Validate-CommandSafety as a PreToolUse hook for Claude and Codex; shared logic in command-safety.py catches rm -rf variants, git reset --hard, git clean -f, Remove-Item -Recurse, del/rd /s /q and nested shells. - Replace duplicated placeholder chains in both builds with adapters/placeholders.tsv. - Restore shell parity: add test-capabilities.sh, rename credentials.ps1 to with-credential.ps1 and qmd-warm.sh to start-qmd-warm.sh. - CI: build once and pass generated/ as an artifact, lint Python with ruff and JavaScript modules with node --check, require SHA pins for all actions. - Add evals for all own skills and update documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
4.4 KiB
JSON
50 lines
4.4 KiB
JSON
{
|
|
"skill_name": "change-impact-analysis",
|
|
"evals": [
|
|
{
|
|
"id": 1,
|
|
"prompt": "We want to change the `UserDto.id` field from a numeric `long` to a string UUID in our public REST API (v1). The DTO is used by `UsersController`, a generated TypeScript client in `web/src/api/`, a nightly CSV export job, and the mobile app (released separately). Before anyone touches code, what's the impact?",
|
|
"expected_output": "Should define the proposed change and the affected contract (public v1 id type). Should locate direct callers and related areas: controller, generated client, export job, mobile app, persisted data, tests, documentation. Should trace runtime, persisted data, client integration, and deployment impact. Should identify compatibility concerns (older mobile clients parsing numbers, CSV consumers, URL routes, sorting), data migration risks. Should separate confirmed impacts from assumptions and unknowns. Should recommend proportionate verification tied to risks. Should return a concise impact map and not implement the change.",
|
|
"assertions": [
|
|
"States the proposed change and the contract it affects",
|
|
"Covers the controller, generated TypeScript client, CSV export job, and mobile app",
|
|
"Identifies backward compatibility risk for already-released mobile clients",
|
|
"Addresses persisted data or migration impact",
|
|
"Separates confirmed impacts from assumptions or unknowns",
|
|
"Recommends verification checks tied to specific risks",
|
|
"Output is structured as an impact map with affected areas, evidence, risks, unknowns, and checks",
|
|
"Does not implement or write the code change"
|
|
],
|
|
"files": []
|
|
},
|
|
{
|
|
"id": 2,
|
|
"prompt": "We plan to upgrade Newtonsoft.Json to System.Text.Json across our ASP.NET Core 8 API. I'm pretty sure STJ handles our `[JsonProperty]` attributes and private setters the same way, so it should be a drop-in. Just confirm the impact is low.",
|
|
"expected_output": "Should not simply confirm the user's assumption. Before confirming external compatibility, must apply the technical-research planning checkpoint and attach evidence or mark the claim unresolved. Should note that Newtonsoft attributes and private-setter handling are external behavior claims requiring evidence. Should identify affected areas (DTOs with attributes, custom converters, serializer settings, consumers) and separate confirmed impacts from assumptions. Should not implement the migration.",
|
|
"assertions": [
|
|
"Does not confirm low impact based solely on the user's assumption",
|
|
"Applies or references the technical-research planning checkpoint for System.Text.Json behavior",
|
|
"Treats [JsonProperty] attribute handling and private setter behavior as claims needing evidence or marks them unresolved",
|
|
"Identifies affected areas such as custom converters, serializer settings, or attribute-annotated DTOs",
|
|
"Separates confirmed facts from assumptions",
|
|
"Does not perform the migration"
|
|
],
|
|
"files": []
|
|
},
|
|
{
|
|
"id": 3,
|
|
"prompt": "We want to delete the `ENABLE_LEGACY_EXPORT` feature flag and the code behind it. I ran `rg ENABLE_LEGACY_EXPORT src/` and got only one hit in `src/config/flags.ts`, so it's dead code, right? What's the impact?",
|
|
"expected_output": "Should not treat a single search hit in src/ as proof the flag is unused: the search scope excluded configuration, deployment files, generated output, tests, and documentation, and the flag may be set per environment. Should broaden the search where the flow is unclear, trace runtime and deployment impact, and separate confirmed impacts from assumptions and unknowns. Should return a concise impact map (affected areas, evidence, risks, unknowns, checks) and recommend proportionate verification. Should not delete the flag or its code.",
|
|
"assertions": [
|
|
"Points out that the search covered only src/ and does not prove the flag is unused",
|
|
"Names additional places to check such as deployment or environment configuration, tests, generated output, or documentation",
|
|
"Does not state that the flag is dead code as a confirmed fact",
|
|
"Separates confirmed impacts from assumptions or unknowns",
|
|
"Returns an impact map with risks and recommended checks",
|
|
"Does not remove the flag or its code"
|
|
],
|
|
"files": []
|
|
}
|
|
]
|
|
}
|