
How to Convert Your MongoDB Data into an AI Knowledge Base with Next.js
Step-by-Step Breakdown for Your Blog You can break down this code for your readers into four key arc...
Loading page...

Published on: 19 November 2026
Most agents look for project skills inside a hidden folder at the root of your repository so your team can version and review them in Git. For GitHub workflows, .github/skills/<skill-name>/SKILL.md is the standard home (alongside shared paths like .agents/skills/ if you use multiple tools):
.github/
├── copilot-instructions.md
└── skills/
├── create-new-block/
│ └── SKILL.md
└── add-aaa-html/
└── SKILL.mdEach skill lives in its own folder with a SKILL.md file starting with YAML frontmatter (name and description) followed by clear, numbered instructions.
create-new-block)A good scaffolding skill names exact files and expected outputs so steps aren't skipped. Notice how documentation is given a clear file and structure rather than a vague wish:
---
name: create-new-block
description: Scaffold a modular frontend block with separated types, styles which uses tailwind, component logic and isolated tests
---
# Create Frontend Block
## Instructions
1. Create a dedicated directory under `block/</kebab-case-name/>`.
2. Define explicit prop, state and callback interfaces in `<kebab-case-name>.types.ts`\-avoid `any` and inline sprawling tyope inside the view file.
3. Implement the UI in `<PascalCaseName>.tsx` handling `loading`, `error`, `empty` and `ready` states explicitly.
4. Implement the block logic in a seperate file `<PascalCaseName>.ts` and import it to the `<PascalCaseName>.tsx` file for code maintainability.
5. Keep styling scoped to the block (using css layers or modular stylesheet) so styles never bleed into surrounding blocks.
6. Use the tailwindcss in the stylesheet for component development.
7. in the stylesheet on top of the file add the `@reference @/src/styles/globals.css`.
8. Add an isolated test file (`<kebab-case-name>.test.tsx`) covering default rendering, empty/error states, and primary user interactions.
9. Create a documentation for the `<PascalCaseName>.tsx` and the `<PascalCaseName>.ts` files
- 2 line description about the block at the top of the file.
- Add the argument type, expected values, return type for the method.
- Create the 1 or 2 line documentation for the HTML code as well whenever there is a logic written to show the content based on the business logic where those logic is written
10. Create a `<kebab-case-name>.md` inside `block/<kebab-case-name>/` containing:
- A concise **2-line summary** of what the block does and the primary method/handler it is created for.
- A **Method / Handler** section showing the signature and a 2-line desription of what it does.
- An **Arguments & Props** list or table with each name, type and brief role.
12. Add the `loading.tsx` file based onthe html it is created with a shimmer effect on the `<PascalCaseName>.tsx` file.
- create the loading css using the tailwind in the `src/styles/loader.css` file if not already present.
- use the class name as `shimmer` for giving the shimmmer effect.
13. This is a standalone block any change in the component css or jsx logic in the parent component should able to override the logic written in the block.
14. Blocks should be extendable to the parent block.add-aaa-html)WCAG Level AAA sets a high bar—including enhanced contrast (7:1 for normal text and 4.5:1 for large text), strong and unobstructed focus indicators, clear link/button names out of context, predictable interactions without surprises on focus, error prevention/confirmation for consequential actions, and accessible status/error messaging.
Here is how to turn those rules into a practical React block skill:
---
name: react-block-aaa
description: Author or audit React blocks against WCAG 2.2 Level AAA accessibility standards using semantic JSX, clear labeling, focus protection, live regions, and accessible tests.
---
# React Block AAA Accessibility
## Instructions
1. **Use native semantic JSX first:** Render `<button>`, `<a href>`, `<label htmlFor="...">`, `<fieldset>`/`<legend>`, `<section>`, `<article>`, and `<nav>` before reaching for ARIA roles or attributes. Never attach click handlers to non-interactive `<div>` or `<span>` elements.
2. **Enforce unambiguous accessible names (SC 2.4.9 & 2.5.3):** Avoid generic labels like "Click here", "Read more", or "Submit" when ambiguous out of context. Ensure any visible label is included in or matches the control's accessible name, and give icon-only buttons an explicit `aria-label`.
3. **Protect focus visibility and avoid obstruction (SC 2.4.12 & 2.4.13):** Preserve visible keyboard focus styles (`:focus-visible`) with high contrast and clear thickness/outline rather than removing outlines. Add scroll/focus margin (`scroll-mt-*` / `scroll-margin-top`) on focusable elements inside blocks when sticky headers or footers could cover them.
4. **Prevent surprises and guide user input (SC 1.4.6, 3.2.5, 3.3.5, 3.3.6):**
- Style text and controls with high contrast in mind (targeting **7:1** for normal text and **4.5:1** for large text) and never rely on color alone to signal status or required fields.
- Do not trigger navigation, form submission, or abrupt context changes merely on focus or input selection without warning.
- Associate form fields with labels and `aria-describedby` hints/errors, and require confirmation or reversible review before destructive or irreversible actions.
5. **Announce state and async changes cleanly:** Use `role="status"` / `aria-live="polite"` for non-urgent updates (loading/empty/saved states) and `role="alert"` for urgent validation or action errors.
6. **Add accessibility assertions in tests:** In the block's test file, verify keyboard interaction, accessible names/labels, live state messages, and automated accessibility checks (such as `axe`).
7. **Note non-static AAA limits:** In the final summary, call out AAA criteria that require page/app or human evaluation (such as live computed contrast across themes, full-page reading level, sign language, or session/time-limit policies).
8. Update the details in the `block/<kebab-case-name>.md` for better understanding.
9. Write a test case in the `block/<kebab-case-name>.test.tsx` for the AAA accessibility and proved the score out of 100
9. Get the score of the AAA accessibility from the test case and add it on the `block/<kebab-case-name>.md` out of 100.You don't have to rewrite your create-new-block and add-aaa-html skills for every editor or agent on your team. Most follow the same SKILL.md convention—just in different folders. Commit skills to .github/skills/<skill-name>/SKILL.md for GitHub workflows, .claude/skills/<skill-name>/SKILL.md for Claude Code, and .codex/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md for Codex and cross-agent setups (with .cursor/skills/ if Cursor is in the mix). If you want one single source of truth across tools without copy-paste drift, keep a canonical skills folder and sync or symlink it into each agent's expected directory.
Building React blocks with WCAG 2.2 Level AAA accessibility doesn't have to rely on memory or repetitive prompts. By separating block scaffolding (create-new-block) from AAA accessibility (add-aaa-html) inside .github/skills/, you get modular, predictable blocks every time—and a reusable accessibility standard you can apply both when a block is born and whenever it evolves.
Keep the file boundaries explicit, require real states and accessible controls upfront, and back your workflow with automated tests and checks rather than guesswork. Once the foundation is in place, every new block starts closer to production-ready—and every future update gets cleaner to maintain.

Step-by-Step Breakdown for Your Blog You can break down this code for your readers into four key arc...

Designing dynamic forms that scale efficiently while managing validation can be tricky. React Hook F...

In a modern development context, i18n (internationalization) is used to make applications adaptable ...