ask-matt
MAmattpocock/skills337k近 7 天新增 4,978 个 star
Create an application-specific production parity skill by inspecting an app's docs, source, tests, CI, deployment, infrastructure, config, auth, and environment setup, then asking targeted harness questions only for source-unanswerable decisions. Use when local, CI, PR, preview, staging, or other non-production environments may drift from production behavior; when production-only auth, config, identity-provider groups, feature flags, infrastructure, backing services, or policy differences caused bugs; or when a team wants a reusable skill that detects, documents, tests, and helps fix parity drift for one specific application.
Build a skill for one application. The generated skill's job is to keep local and non-production environments behaviorally aligned with production, while making every intentional difference explicit and tested.
Idea credit: GitHub user @dm.
Production is the reference contract. Local, CI, PR, preview, and staging may use lighter infrastructure, but they must either emulate production behavior or document the divergence with compensating tests. A production authentik group restriction that is absent locally is a parity bug, not a harmless convenience.
First build evidence from the repository. Do not ask the user to explain what can be discovered from files.
Inspect, as applicable:
README*, docs/, ADRs, runbooks, onboarding, local setup, deployment notesUse rg --files and targeted rg searches. Search for environment names and parity-sensitive terms:
prod|production|staging|preview|pr|local|dev|ci|docker|compose|k8s|helm|terraform|pulumi|auth|oidc|saml|jwt|group|role|claim|permission|feature flag|secret|env|webhook|cron|queue|seed|fixture|migration
Create a working parity map before writing the generated skill. For each surface, record:
Load resources/parity-surface-catalog.md when choosing surfaces and checks. Use the catalog as a checklist, not as a claim that every app needs every surface.
Use the harness's available ask-question facility when it exists: AskUserQuestion, request_user_input, ask_question, or the equivalent in the active agent harness. If no structured question tool is available, ask a concise plain-text question.
Ask only after inspection. Ask only questions that change the generated skill or required fixes.
Question rules:
Load resources/question-patterns.md for reusable question shapes.
Build the parity map before comparing emulator, local service, hosted sandbox, or testing-tool options. When repository evidence cannot settle a consequential choice among them, route the known parity contract and constraints through evaluate-existing-solutions; do not let a tool search define what production fidelity means.
Example:
Production appears to require authentik group `app-users` for login, but local and PR setup seed no equivalent restriction.
How should non-production enforce this?
1. Mirror production with seeded IdP group membership. Recommended: catches auth drift while keeping local deterministic.
2. Use a lightweight OIDC/authentik emulator with the same required claim. Good when running real authentik locally is too heavy.
3. Keep local unrestricted, but add contract/E2E tests that fail unless prod-only group enforcement is represented. Faster local login, higher residual drift risk.
Write a new skill for the specific app, normally named <app-name>-production-parity unless the user or repo naming convention suggests otherwise.
Store the generated skill directly in the target application's repository. Never create the generated app-specific skill in a user/global folder such as ~/.agents/skills, ~/.codex/skills, ~/.claude/skills, or $CODEX_HOME/skills.
Choose the project-local location by inspecting the app repo:
.claude/skills/<app-name>-production-parity/SKILL.md when the repo uses Claude project config..codex/skills/<app-name>-production-parity/SKILL.md when the repo uses Codex project config.The generated skill must include:
Start from resources/generated-skill-template.md, but remove irrelevant sections and replace placeholders with app-specific evidence.
The generated skill should name narrowly scoped checks the target app needs:
When a difference is intentional, require a named reason and compensating guard. "Local is easier" is not enough.
Implement those checks in app code, tests, configuration, fixtures, or infrastructure only when the user explicitly asked for parity fixes or authorizes the additional mutation after seeing the gap. A request to create the reusable skill alone authorizes the skill artifact, not unrelated app or infrastructure changes. Otherwise put the exact guard contract and recommended location in the generated skill/output and leave the target app untouched.
Before finishing:
Return:
Do not present a generic parity report as the final product. The primary deliverable is the reusable app-specific skill.
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
MAmattpocock/skills337k近 7 天新增 4,978 个 star
OBobra/superpowers331k近 7 天新增 4,772 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star
AFaffaan-m/ECC315k近 7 天新增 4,381 个 star