api-change
Skill2 starsChanged 4 months agoApache-2.0View on GitHub
Implement or modify a AI Governance Control Plane REST API endpoint, request or response model, router, mapper, dependency, or HTTP error mapping. Use for backwards-compatible API additions, contract changes, pagination, authorization, idempotent write endpoints, and API-focused tests.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- cubetribe/ClaudeCode_GodMode-Ontheir own version, first seen Oct 13, 2026
- TiagoGranelli/slopprooftheir own version, first seen Oct 13, 2026
- software-mansion/smeltertheir own version, first seen Oct 8, 2026
- seshachalam-yv/etcd-druid-skillstheir own version, first seen Apr 21, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- software-mansion/smelter★ 764same name
- cubetribe/ClaudeCode_GodMode-On★ 55same name
- TiagoGranelli/slopproof★ 2same name
- seshachalam-yv/etcd-druid-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- console/AGENTS.mdAGENTS.md
- keycloak-postgres/AGENTS.mdAGENTS.md
- domain-featureSkill
- governance-policySkill
- keycloak-service-identitySkill
- model-runtime-capability-profileSkill
- tenant-isolationSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Read root AGENTS.md and src/ai_governance/api/AGENTS.md.
- Distinctive: line 18
Put validation and mapping in the adapter.
- Distinctive: line 26
Add endpoint tests for the successful path, invalid input, authorization or tenant boundary, and stable error mapping.
- Distinctive: line 31
Follow the existing decision-router shape.
- Distinctive: line 54
Update OpenAPI summary and description with the actual contract.
- Distinctive: line 57
Add a mapper rather than returning a domain or persistence object directly.
- Distinctive: line 72
Run the targeted test for the changed router and any dependent service test.
- Distinctive: line 73
Run the full relevant suite before handoff when the API change crosses a transport, service, persistence, or tenancy boundary.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
API Change
Implement a REST change as a transport adapter over an application service.
Workflow
- Read root
AGENTS.mdandsrc/ai_governance/api/AGENTS.md. Read the service, tenancy, repository, or domain instructions for every layer changed. - Inspect the existing router, request/response models, mapper, dependency provider, and closest API test before choosing the public contract.
- Preserve existing routes and fields. Add a versioned route or an optional field when a breaking change is not deliberately approved.
- Put validation and mapping in the adapter. Put business decisions in an application service; do not import database implementations into a router.
- Obtain context through approved dependencies. Pass the resolved context to every protected service call; never use an unverified tenant value from the body or query string.
- Bound and validate list pagination. Require authorization and an idempotency mechanism where a client or transport can plausibly retry a write.
- Add endpoint tests for the successful path, invalid input, authorization or tenant boundary, and stable error mapping.
Route pattern
Follow the existing decision-router shape. Adapt names and response types to the target capability; do not copy tenant identifiers from the request.
@router.get("/{decision_id}", response_model=DecisionResponse)
def get_decision(
decision_id: str,
service: Annotated[
object, Depends(get_governance_decision_application_service)
],
context=Depends(get_compatible_tenant_context),
) -> DecisionResponse:
decision = service.get(decision_id, context)
return DecisionApiMapper.to_decision_response(decision)For a list endpoint, use a bounded FastAPI query parameter such as
Query(default=50, ge=1, le=500) and pass the resolved context to the
service.
Contract checklist
- Declare request, success, and stable error response models.
- Update OpenAPI summary and description with the actual contract.
- Map internal exceptions at the HTTP boundary without exposing implementation details.
- Add a mapper rather than returning a domain or persistence object directly.
- Confirm state-changing routes are authorized, deterministic under a retry, and auditable through the service layer.
Verify
Choose the closest existing API test module and run it. These commands are known to exercise the current decision and policy API contracts:
uv run ruff check src/ai_governance/api
uv run pytest tests/api/test_decision_api.py
uv run pytest tests/api/test_policy_administration_api.pyRun the targeted test for the changed router and any dependent service test. Run the full relevant suite before handoff when the API change crosses a transport, service, persistence, or tenancy boundary.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

