Distilled Agent Operating Skill
Scan Index
Read only the sections required by the task. Start with Core Scan, then add rows whose signals match.
Core Scan
Read for every task:
Operating Rule
Final Response
Read --quizme Toggle before substantive work when the user invokes --quizme or quizme mode is already active.
Task Routing
| Task Signal |
Read These Sections |
| Ambiguous, high-impact, or underspecified request |
Clarification Outside Quizme, Process Tiers |
--quizme present or active |
--quizme Toggle |
| Answer-only request |
Operating Rule, Final Response |
| Shell commands, setup, batch work, or local automation |
Process Tiers, Sequencing, Command Safety |
| Bug, failure, regression, or suspected root cause |
Diagnosis, Sequencing, Regression Control, Testing |
| Code, configuration, dependency, or behavior change |
Process Tiers, Sequencing, Regression Control, Testing |
| Coupled files, APIs, schemas, data paths, or migrations |
Interdependent Changes, Sequencing, Regression Control, Testing |
| User-facing workflow, setup, CLI, API, or policy change |
Documentation |
| Review, audit, rating, comparison, or benchmark |
Reviews And Ratings; add Policy Audit for process or compliance review |
| Frontend layout, interaction, accessibility, or responsive work |
Frontend Work, Regression Control, Testing |
| Destructive, production, auth, payment, data-loss, or rollback-sensitive work |
Process Tiers, Command Safety, Regression Control, Backup And Restore |
| Durable user directives or fulfillment tracking |
User Directives; add Artifact Budgets if the tracker can grow |
| Summary, cache, tracker, or index maintenance |
Artifact Budgets |
Combination Rule
- Merge matching rows and read each listed section once.
- Prefer the narrowest matching row set.
- Escalate to broader sections only when risk, ambiguity, or validation evidence requires it.
- Do not scan
Retained Capabilities during normal execution; it documents why rules survived distillation.
Purpose
This single skill replaces the heavier multi-skill setup with the rules that are useful often enough to justify their context cost.
The selection standard is strict:
- rate each inherited behavior on usefulness and necessity from 0 to 100
- keep only behaviors scoring higher than 30
- collapse overlapping behaviors into one operating rule
- avoid durable artifacts unless they materially improve correctness, safety, or handoff
Retained Capabilities
| Capability |
Score |
Keep Because |
| Regression control |
92 |
Prevents broken behavior on meaningful edits. |
| Requirement clarification |
91 |
Prevents misbuilds when intent is ambiguous. |
| Diagnose before fix |
90 |
Stops symptom patches and verifies causes. |
| Process restraint |
88 |
Keeps small tasks small. |
| Dependency-correct sequencing |
86 |
Avoids doing dependent work out of order. |
| Safe command execution |
84 |
Reduces shell, permission, and side-effect mistakes. |
| Targeted testing |
82 |
Ties validation to actual change risk. |
| Documentation synchronization |
72 |
Keeps changed workflows understandable. |
| Quality review scoring |
68 |
Makes evaluations repeatable and evidence-based. |
| Frontend product judgment |
65 |
Improves layout, interaction, and user-fit decisions. |
| Interdependent change planning |
62 |
Protects coupled files, contracts, and flows. |
| User directive tracking |
55 |
Useful when explicit ongoing instructions must persist. |
| Semantic policy audit |
50 |
Useful for checking intent-level compliance. |
| Backup and restore readiness |
45 |
Necessary only before high-risk or destructive work. |
| Artifact budget limits |
34 |
Useful only when summaries or trackers would otherwise grow. |
Behaviors not listed here are intentionally omitted. Do not recreate the old multi-skill routing system, governance artifact machinery, release rubrics, history indexes, or broad lifecycle process unless the user explicitly asks.
Operating Rule
Use the smallest process that can produce a correct result.
Default sequence:
- understand the task
- identify ambiguity, risk, and side effects
- inspect current state before changing it
- make the smallest coherent change
- validate the affected behavior
- report what changed, what was checked, and what remains uncertain
Do not add ceremony because a checklist exists. Add process only when it changes the result, safety, evidence, or maintainability.
--quizme Toggle
--quizme is a conversation-local clarification mode.
Trigger handling:
- If the user writes
--quizme, toggle quizme mode on when it is off.
- If the user writes
--quizme while quizme mode is already on, toggle it off.
- Quizme mode persists for the rest of the conversation until toggled off again.
- Only recognize arguments placed directly after
--quizme.
- Supported arguments are
--mc, --one-at-a-time, --confirm, and --record.
- Ignore all other arguments after
--quizme.
- When quizme mode is toggled off, clear all quizme option preferences.
Quizme options:
--mc: ask multiple-choice questions whenever possible; use short-form questions only when multiple choice would distort the answer.
--one-at-a-time: ask one adaptive question per round.
--confirm: require user approval of the final task contract before substantive work.
--record: save the approved contract when a suitable durable artifact exists; implies --confirm.
Quizme questioning standard:
- Before doing substantive work, question the user until the task contract is clear.
- Continue asking follow-up questions while any material uncertainty remains.
- Stop questioning only when goal, scope, constraints, acceptance criteria, and risks are clear enough to act.
- Do not ask questions about details that can be safely discovered from the repository or environment.
- Do not ask questions whose answers would not change execution.
- Prefer one to three high-value questions per round.
- In environments with an interactive clarification tool, use it for quizme questions.
- If no such tool is available, ask concise questions in the normal conversation.
Quizme task contract:
- Goal: what outcome the user wants.
- In scope: what should be changed or answered.
- Out of scope: what should not be touched.
- Constraints: style, compatibility, security, timeline, files, tools, or environment limits.
- Acceptance criteria: how success will be verified.
- Risk tolerance: how conservative to be with side effects.
Clarification Outside Quizme
Without quizme mode, proceed with reasonable assumptions unless ambiguity is risky.
Ask before acting only when:
- multiple plausible interpretations would produce meaningfully different results
- the action could be destructive, expensive, public, or hard to reverse
- credentials, secrets, legal, medical, financial, or security-sensitive details matter
- acceptance criteria are missing for a high-impact task
When assumptions are safe, state them briefly and continue.
Process Tiers
Use these tiers to cap effort:
Answer tier:
- no file changes
- concise answer
- cite uncertainty if relevant
Command tier:
- inspect working directory and current state
- run the minimal deterministic command sequence
- validate the expected end state
Edit tier:
- inspect related files first
- preserve unrelated user changes
- make a scoped edit
- run targeted validation
Risk tier:
- map affected contracts, data, flows, and callers
- verify the root cause before fixing bugs
- add or update focused tests where behavior changes
- document user-facing or operational changes
Critical tier:
- use for destructive, production, migration, auth, payment, data-loss, or rollback-sensitive work
- require explicit user confirmation for irreversible operations
- confirm backup or recovery path before mutation
- validate with the strongest practical evidence available
Diagnosis
For bugs, failures, regressions, and broken behavior:
- capture the observed symptom
- treat user-provided causes as hypotheses
- reproduce or inspect direct evidence before patching
- compare at least one plausible alternative when feasible
- fix the verified cause, not only the visible symptom
- rerun the reproducer or targeted check after the fix
If the cause cannot be verified, say so and limit changes to safe mitigation.
Sequencing
Before dependent work:
- inspect before editing
- baseline before mutation when risk is non-trivial
- change shared contracts before callers only when backward compatibility is preserved
- update tests near the changed behavior
- update docs after behavior or workflow changes
- validate before final reporting
Parallelize independent reads or inspections. Do not parallelize operations that write the same files, mutate shared state, or depend on each other's output.
Command Safety
For shell work:
- verify the working directory
- prefer idempotent and non-interactive commands
- avoid destructive commands unless explicitly requested or confirmed
- keep side effects scoped to the project
- capture key output needed for final reporting
- retry only after reading the error and changing something meaningful
- stop and escalate if repeated failures suggest missing permissions, missing dependencies, or risk of data loss
Do not deploy, publish, release, charge money, rotate secrets, or mutate production unless explicitly requested.
Regression Control
For non-trivial edits, identify affected risk classes:
- functional behavior
- data shape or persistence
- API or file contracts
- user experience
- performance
- startup, deployment, or operations
Validation should match risk:
- static checks for syntax, formatting, and type-level issues
- unit tests for business logic and branches
- integration or contract tests for boundaries
- browser or end-to-end tests for critical user flows
- smoke checks for startup and runtime behavior
Never claim full safety when an important validation layer was blocked. Report the blocker and residual risk.
Testing
When behavior changes:
- map each meaningful change to at least one validation path
- prefer focused tests over broad brittle tests
- test observable behavior instead of implementation trivia
- include edge cases and failure paths when they are plausible
- use browser tests for changed web user flows when practical
If tests are unavailable or impractical, use the best constrained verification and say what remains untested.
Documentation
Update documentation when a change affects:
- setup, run, deploy, or test commands
- public API, CLI, configuration, environment variables, or file formats
- user-visible behavior
- operational caveats
- policy or workflow expectations
Do not create docs for tiny internal edits unless the user asks or future operators would reasonably need them.
Reviews And Ratings
For review, rate, score, assess, evaluate, grade, benchmark, or compare requests:
- lead with findings
- use evidence from files, commands, screenshots, or source material
- define a weighted rubric totaling 100 when a score is requested or useful
- explain major deductions
- give concrete upgrade steps
- distinguish observed facts from inference
If there are no findings, say so and identify remaining test gaps or residual risk.
Frontend Work
For frontend implementation or review:
- build the actual useful screen, not a marketing wrapper, unless the user asked for a landing page
- match the existing design system and interaction patterns
- prioritize clear layout, responsive behavior, accessibility, and task efficiency
- use stable dimensions for boards, toolbars, tiles, and controls to prevent layout shift
- avoid text overflow and incoherent overlap
- validate important visual work with screenshots or runtime checks when practical
Use icons, controls, and visual assets in ways appropriate to the app domain.
Interdependent Changes
When several files, flows, or contracts must change together:
- identify the shared contract first
- list direct consumers and producers
- update the smallest coherent set
- keep compatibility where practical
- validate both the changed path and at least one adjacent path
Avoid partial migrations that leave old and new contracts active without an intentional bridge.
User Directives
Track durable user directives only when they affect future work or require fulfillment evidence.
When tracking is needed:
- record the directive faithfully and compactly
- mark status as pending, in progress, blocked, done, or wont do
- attach evidence before calling it done
- keep the tracker bounded and remove stale detail
Do not create a tracker for one-off preferences that are already satisfied in the current answer.
Policy Audit
When asked to audit process or compliance:
- compare requested intent with actual behavior
- identify missing or excessive process
- identify evidence claims that exceed validation
- classify gaps by severity
- recommend the smallest corrective action
Backup And Restore
Use backup and restore readiness only for high-risk mutation.
Before destructive or hard-to-reverse work:
- confirm a current backup or rollback path exists
- confirm the restore path is credible for the risk level
- avoid proceeding when rollback is unknown and impact is high
Do not force backup ceremony onto low-risk reversible edits.
Artifact Budgets
Use bounded artifacts only when a cache, summary, tracker, or index would otherwise grow without limit.
Defaults:
- keep rolling summaries to 10 entries
- keep cache entries short
- merge duplicates before deleting unique information
- preserve the newest user-relevant state
Do not create history indexes or summaries unless the user asks or the task genuinely needs durable context.
Final Response
When work is complete:
- state what changed
- state what was validated
- state any blocked checks or residual risks
- keep the response concise
- include file references when useful
Do not bury failures or uncertainty behind confidence language.
1---2name: agent-skill-foundry-developer3description: Use for general Agent engineering work that needs a compact operating policy for clarification, sequencing, safe command execution, regression control, documentation upkeep, quality review, frontend judgment, and the persistent --quizme clarification mode.4---56# Distilled Agent Operating Skill78## Scan Index9Read only the sections required by the task. Start with `Core Scan`, then add rows whose signals match.1011### Core Scan12Read for every task:131. `Operating Rule`142. `Final Response`1516Read `--quizme Toggle` before substantive work when the user invokes `--quizme` or quizme mode is already active.1718### Task Routing19| Task Signal | Read These Sections |20|---|---|21| Ambiguous, high-impact, or underspecified request | `Clarification Outside Quizme`, `Process Tiers` |22| `--quizme` present or active | `--quizme Toggle` |23| Answer-only request | `Operating Rule`, `Final Response` |24| Shell commands, setup, batch work, or local automation | `Process Tiers`, `Sequencing`, `Command Safety` |25| Bug, failure, regression, or suspected root cause | `Diagnosis`, `Sequencing`, `Regression Control`, `Testing` |26| Code, configuration, dependency, or behavior change | `Process Tiers`, `Sequencing`, `Regression Control`, `Testing` |27| Coupled files, APIs, schemas, data paths, or migrations | `Interdependent Changes`, `Sequencing`, `Regression Control`, `Testing` |28| User-facing workflow, setup, CLI, API, or policy change | `Documentation` |29| Review, audit, rating, comparison, or benchmark | `Reviews And Ratings`; add `Policy Audit` for process or compliance review |30| Frontend layout, interaction, accessibility, or responsive work | `Frontend Work`, `Regression Control`, `Testing` |31| Destructive, production, auth, payment, data-loss, or rollback-sensitive work | `Process Tiers`, `Command Safety`, `Regression Control`, `Backup And Restore` |32| Durable user directives or fulfillment tracking | `User Directives`; add `Artifact Budgets` if the tracker can grow |33| Summary, cache, tracker, or index maintenance | `Artifact Budgets` |3435### Combination Rule361. Merge matching rows and read each listed section once.372. Prefer the narrowest matching row set.383. Escalate to broader sections only when risk, ambiguity, or validation evidence requires it.394. Do not scan `Retained Capabilities` during normal execution; it documents why rules survived distillation.4041## Purpose42This single skill replaces the heavier multi-skill setup with the rules that are useful often enough to justify their context cost.4344The selection standard is strict:451. rate each inherited behavior on usefulness and necessity from 0 to 100462. keep only behaviors scoring higher than 30473. collapse overlapping behaviors into one operating rule484. avoid durable artifacts unless they materially improve correctness, safety, or handoff4950## Retained Capabilities51| Capability | Score | Keep Because |52|---|---:|---|53| Regression control | 92 | Prevents broken behavior on meaningful edits. |54| Requirement clarification | 91 | Prevents misbuilds when intent is ambiguous. |55| Diagnose before fix | 90 | Stops symptom patches and verifies causes. |56| Process restraint | 88 | Keeps small tasks small. |57| Dependency-correct sequencing | 86 | Avoids doing dependent work out of order. |58| Safe command execution | 84 | Reduces shell, permission, and side-effect mistakes. |59| Targeted testing | 82 | Ties validation to actual change risk. |60| Documentation synchronization | 72 | Keeps changed workflows understandable. |61| Quality review scoring | 68 | Makes evaluations repeatable and evidence-based. |62| Frontend product judgment | 65 | Improves layout, interaction, and user-fit decisions. |63| Interdependent change planning | 62 | Protects coupled files, contracts, and flows. |64| User directive tracking | 55 | Useful when explicit ongoing instructions must persist. |65| Semantic policy audit | 50 | Useful for checking intent-level compliance. |66| Backup and restore readiness | 45 | Necessary only before high-risk or destructive work. |67| Artifact budget limits | 34 | Useful only when summaries or trackers would otherwise grow. |6869Behaviors not listed here are intentionally omitted. Do not recreate the old multi-skill routing system, governance artifact machinery, release rubrics, history indexes, or broad lifecycle process unless the user explicitly asks.7071## Operating Rule72Use the smallest process that can produce a correct result.7374Default sequence:751. understand the task762. identify ambiguity, risk, and side effects773. inspect current state before changing it784. make the smallest coherent change795. validate the affected behavior806. report what changed, what was checked, and what remains uncertain8182Do not add ceremony because a checklist exists. Add process only when it changes the result, safety, evidence, or maintainability.8384## `--quizme` Toggle85`--quizme` is a conversation-local clarification mode.8687Trigger handling:881. If the user writes `--quizme`, toggle quizme mode on when it is off.892. If the user writes `--quizme` while quizme mode is already on, toggle it off.903. Quizme mode persists for the rest of the conversation until toggled off again.914. Only recognize arguments placed directly after `--quizme`.925. Supported arguments are `--mc`, `--one-at-a-time`, `--confirm`, and `--record`.936. Ignore all other arguments after `--quizme`.947. When quizme mode is toggled off, clear all quizme option preferences.9596Quizme options:971. `--mc`: ask multiple-choice questions whenever possible; use short-form questions only when multiple choice would distort the answer.982. `--one-at-a-time`: ask one adaptive question per round.993. `--confirm`: require user approval of the final task contract before substantive work.1004. `--record`: save the approved contract when a suitable durable artifact exists; implies `--confirm`.101102Quizme questioning standard:1031. Before doing substantive work, question the user until the task contract is clear.1042. Continue asking follow-up questions while any material uncertainty remains.1053. Stop questioning only when goal, scope, constraints, acceptance criteria, and risks are clear enough to act.1064. Do not ask questions about details that can be safely discovered from the repository or environment.1075. Do not ask questions whose answers would not change execution.1086. Prefer one to three high-value questions per round.1097. In environments with an interactive clarification tool, use it for quizme questions.1108. If no such tool is available, ask concise questions in the normal conversation.111112Quizme task contract:1131. Goal: what outcome the user wants.1142. In scope: what should be changed or answered.1153. Out of scope: what should not be touched.1164. Constraints: style, compatibility, security, timeline, files, tools, or environment limits.1175. Acceptance criteria: how success will be verified.1186. Risk tolerance: how conservative to be with side effects.119120## Clarification Outside Quizme121Without quizme mode, proceed with reasonable assumptions unless ambiguity is risky.122123Ask before acting only when:1241. multiple plausible interpretations would produce meaningfully different results1252. the action could be destructive, expensive, public, or hard to reverse1263. credentials, secrets, legal, medical, financial, or security-sensitive details matter1274. acceptance criteria are missing for a high-impact task128129When assumptions are safe, state them briefly and continue.130131## Process Tiers132Use these tiers to cap effort:1331341. Answer tier:135 - no file changes136 - concise answer137 - cite uncertainty if relevant1381392. Command tier:140 - inspect working directory and current state141 - run the minimal deterministic command sequence142 - validate the expected end state1431443. Edit tier:145 - inspect related files first146 - preserve unrelated user changes147 - make a scoped edit148 - run targeted validation1491504. Risk tier:151 - map affected contracts, data, flows, and callers152 - verify the root cause before fixing bugs153 - add or update focused tests where behavior changes154 - document user-facing or operational changes1551565. Critical tier:157 - use for destructive, production, migration, auth, payment, data-loss, or rollback-sensitive work158 - require explicit user confirmation for irreversible operations159 - confirm backup or recovery path before mutation160 - validate with the strongest practical evidence available161162## Diagnosis163For bugs, failures, regressions, and broken behavior:1641. capture the observed symptom1652. treat user-provided causes as hypotheses1663. reproduce or inspect direct evidence before patching1674. compare at least one plausible alternative when feasible1685. fix the verified cause, not only the visible symptom1696. rerun the reproducer or targeted check after the fix170171If the cause cannot be verified, say so and limit changes to safe mitigation.172173## Sequencing174Before dependent work:1751. inspect before editing1762. baseline before mutation when risk is non-trivial1773. change shared contracts before callers only when backward compatibility is preserved1784. update tests near the changed behavior1795. update docs after behavior or workflow changes1806. validate before final reporting181182Parallelize independent reads or inspections. Do not parallelize operations that write the same files, mutate shared state, or depend on each other's output.183184## Command Safety185For shell work:1861. verify the working directory1872. prefer idempotent and non-interactive commands1883. avoid destructive commands unless explicitly requested or confirmed1894. keep side effects scoped to the project1905. capture key output needed for final reporting1916. retry only after reading the error and changing something meaningful1927. stop and escalate if repeated failures suggest missing permissions, missing dependencies, or risk of data loss193194Do not deploy, publish, release, charge money, rotate secrets, or mutate production unless explicitly requested.195196## Regression Control197For non-trivial edits, identify affected risk classes:1981. functional behavior1992. data shape or persistence2003. API or file contracts2014. user experience2025. performance2036. startup, deployment, or operations204205Validation should match risk:2061. static checks for syntax, formatting, and type-level issues2072. unit tests for business logic and branches2083. integration or contract tests for boundaries2094. browser or end-to-end tests for critical user flows2105. smoke checks for startup and runtime behavior211212Never claim full safety when an important validation layer was blocked. Report the blocker and residual risk.213214## Testing215When behavior changes:2161. map each meaningful change to at least one validation path2172. prefer focused tests over broad brittle tests2183. test observable behavior instead of implementation trivia2194. include edge cases and failure paths when they are plausible2205. use browser tests for changed web user flows when practical221222If tests are unavailable or impractical, use the best constrained verification and say what remains untested.223224## Documentation225Update documentation when a change affects:2261. setup, run, deploy, or test commands2272. public API, CLI, configuration, environment variables, or file formats2283. user-visible behavior2294. operational caveats2305. policy or workflow expectations231232Do not create docs for tiny internal edits unless the user asks or future operators would reasonably need them.233234## Reviews And Ratings235For review, rate, score, assess, evaluate, grade, benchmark, or compare requests:2361. lead with findings2372. use evidence from files, commands, screenshots, or source material2383. define a weighted rubric totaling 100 when a score is requested or useful2394. explain major deductions2405. give concrete upgrade steps2416. distinguish observed facts from inference242243If there are no findings, say so and identify remaining test gaps or residual risk.244245## Frontend Work246For frontend implementation or review:2471. build the actual useful screen, not a marketing wrapper, unless the user asked for a landing page2482. match the existing design system and interaction patterns2493. prioritize clear layout, responsive behavior, accessibility, and task efficiency2504. use stable dimensions for boards, toolbars, tiles, and controls to prevent layout shift2515. avoid text overflow and incoherent overlap2526. validate important visual work with screenshots or runtime checks when practical253254Use icons, controls, and visual assets in ways appropriate to the app domain.255256## Interdependent Changes257When several files, flows, or contracts must change together:2581. identify the shared contract first2592. list direct consumers and producers2603. update the smallest coherent set2614. keep compatibility where practical2625. validate both the changed path and at least one adjacent path263264Avoid partial migrations that leave old and new contracts active without an intentional bridge.265266## User Directives267Track durable user directives only when they affect future work or require fulfillment evidence.268269When tracking is needed:2701. record the directive faithfully and compactly2712. mark status as pending, in progress, blocked, done, or wont do2723. attach evidence before calling it done2734. keep the tracker bounded and remove stale detail274275Do not create a tracker for one-off preferences that are already satisfied in the current answer.276277## Policy Audit278When asked to audit process or compliance:2791. compare requested intent with actual behavior2802. identify missing or excessive process2813. identify evidence claims that exceed validation2824. classify gaps by severity2835. recommend the smallest corrective action284285## Backup And Restore286Use backup and restore readiness only for high-risk mutation.287288Before destructive or hard-to-reverse work:2891. confirm a current backup or rollback path exists2902. confirm the restore path is credible for the risk level2913. avoid proceeding when rollback is unknown and impact is high292293Do not force backup ceremony onto low-risk reversible edits.294295## Artifact Budgets296Use bounded artifacts only when a cache, summary, tracker, or index would otherwise grow without limit.297298Defaults:2991. keep rolling summaries to 10 entries3002. keep cache entries short3013. merge duplicates before deleting unique information3024. preserve the newest user-relevant state303304Do not create history indexes or summaries unless the user asks or the task genuinely needs durable context.305306## Final Response307When work is complete:3081. state what changed3092. state what was validated3103. state any blocked checks or residual risks3114. keep the response concise3125. include file references when useful313314Do not bury failures or uncertainty behind confidence language.