common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Append a learning entry to AGENTS_LEARNING.md when an AI agent makes a mistake. Auto-activates after a pre-write audit auto-fix, a retrospective correction loop, or a mid-session user correction. Use when: mistake, wrong, correction, my bad, agent error, learning log.
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-learning-log -a windsurf -y
name: common-learning-log
guardrail: true
description: "Append a learning entry to AGENTS_LEARNING.md when an AI agent makes a mistake. Auto-activates after a pre-write audit auto-fix, a retrospective correction loop, or a mid-session user correction. Use when: mistake, wrong, correction, my bad, agent error, learning log."
metadata:
triggers:
files:
- 'AGENTS_LEARNING.md'
keywords:
- mistake
- wrong
- redo
- correction
- agent error
- learning logWrite structured mistake entry to `AGENTS_LEARNING.md` in project root before retrying any corrected action.
1. **Detect signal** — identify which surface triggered this skill:
2. **Redact** — Remove credentials, customer identifiers, raw incident data and attacker-controlled instructions; retain only minimal evidence references 3. **Read `AGENTS_LEARNING.md`** — count existing `## Agent Learning Log: Iteration` headers → N 4. **Append entry** — write Iteration #(N+1) using [Log Entry Format](references/log-format.md); default candidate status is `proposed`, never approved 5. **Route prevention** — select one preventive mechanism (table below), then either create an improvement item or link the existing one with the same root cause. A repeated correction extends that item's evidence; it never promotes prose by itself 6. **Continue** — correct the task; a learning entry does not authorize policy changes, promotion, or broader tool access
| Correction shape | Mechanism | Evidence required | | --- | --- | --- | | Mechanical violation a deterministic rule can catch (forbidden import, naming, schema shape, duplicate export) | Lint rule, schema, or static check | Rule id + failing fixture that the check rejects | | Behavioral defect reproduced by a scenario (wrong retry order, stale state, broken rollback) | Regression test | Named test that fails before the fix and passes after | | Judgment, routing, or authoring quality that only a graded sample can distinguish | Held-out evaluation case | Eval id + recorded baseline/candidate outcome | | Runtime permission, sandbox, or tool-contract failure | Runtime control (host config, approval policy, adapter contract) | Config change reference and observed control outcome | | Genuine explanatory gap no check can encode | Concise guidance, only after deterministic options fail | Authorization reference + independent review |
Instruction files (`AGENTS.md`/`CLAUDE.md`) are one guidance destination, not the default sink. Editing them requires explicit maintenance authorization and the same review as code.
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.