Component Testing
makifbaysal/tasktrooper
A skill your agent uses when writing or changing any React component - React Testing Library tests are behavior-focused (byRole first), use user-event, assert on accessible output, one behavior per…
Build a new frontend component, panel, dashboard tab, or screen that matches the Matchday design language, works in light and dark, is keyboard and screen-reader accessible, reuses existing…
$ npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install openfootmanager/openfootmanager new-ui-surface --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/openfootmanager/openfootmanager.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/new-ui-surface .claude/skills/new-ui-surface && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "new-ui-surface" agent skill from https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surface into .claude/skills/new-ui-surface/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "new-ui-surface", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surfaceType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install openfootmanager/openfootmanager new-ui-surface --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openfootmanager/openfootmanager.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/new-ui-surface .agents/skills/new-ui-surface && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "new-ui-surface" agent skill from https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surface into .agents/skills/new-ui-surface/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "new-ui-surface", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install openfootmanager/openfootmanager new-ui-surface --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openfootmanager/openfootmanager.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/new-ui-surface .cursor/skills/new-ui-surface && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "new-ui-surface" agent skill from https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surface into .cursor/skills/new-ui-surface/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "new-ui-surface", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/openfootmanager/openfootmanager.git --path .claude/skills/new-ui-surface--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install openfootmanager/openfootmanager new-ui-surface --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openfootmanager/openfootmanager.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/new-ui-surface .gemini/skills/new-ui-surface && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "new-ui-surface" agent skill from https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surface into .gemini/skills/new-ui-surface/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "new-ui-surface", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install openfootmanager/openfootmanager new-ui-surfaceInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/openfootmanager/openfootmanager.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/new-ui-surface .github/skills/new-ui-surface && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "new-ui-surface" agent skill from https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surface into .github/skills/new-ui-surface/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "new-ui-surface", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install openfootmanager/openfootmanager new-ui-surface --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openfootmanager/openfootmanager.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/new-ui-surface .opencode/skills/new-ui-surface && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "new-ui-surface" agent skill from https://github.com/openfootmanager/openfootmanager/tree/develop/.claude/skills/new-ui-surface into .opencode/skills/new-ui-surface/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "new-ui-surface", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
new-ui-surfaceBuild a new frontend component, panel, dashboard tab, or screen that matches the Matchday design language, works in light and dark, is keyboard and screen-reader accessible, reuses existing…
New UI Surface is an agent skill from openfootmanager/openfootmanager. Build a new frontend component, panel, dashboard tab, or screen that matches the Matchday design language, works in light and dark, is keyboard and screen-reader accessible, reuses existing primitives, and ships with a Testing Library test.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering Accessibility. It works with Testing Library. The repository describes itself as: An open source soccer/football manager game. The licence is GPL-3.0.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 90b05fd. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadEditWriteGrepGlobBash(npm exec --no -- vitest run src/components*)Bash(npm exec --no -- tsc --noEmit)From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
New UI Surface loads about 1.9k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 799 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from openfootmanager/openfootmanager at commit 90b05fd, republished under its GPL-3.0 licence (© openfootmanager). 799 words, ~1,873 tokens.
.claude/skills/new-ui-surface/SKILL.md (or your agent's skills folder).The app has one visual voice — "Matchday", a broadcast-graphics look. New surfaces should be indistinguishable from existing ones. Reuse first, then compose, then style.
Read src/components/ui/index.ts before writing markup. It already exports:
Card / CardHeader / CardBody · Button · Badge · ProgressBar · Select · Checkbox ·
DatePicker · CountryFlag · TeamLocation · PlayerAvatar · TeamLogo · InjuryBadge ·
JerseyIcon · ThemeToggle · PitchToken · AssetImage · GeneratedAvatar · GeneratedCrest ·
CountryCombobox
Also check before writing a helper:
src/lib/ — formatting and domain helpers (finance.ts, playerSquad.ts, playerRoles.ts,
countries.ts, dateFormatting.ts, seasonContext.ts, playerOvr.ts, …)src/hooks/ — useAdvanceTime, useFetchedSquad, useUndoRedo, useAssetDataUrl, …src/services/ — every backend call. Components never call invoke() directly.A new component belongs in src/components/ui/ only if a second feature will use it.
Otherwise put it in the feature folder (src/components/squad/, src/components/transfers/, …).
Apply the root Code quality layer and size rules: frontend functions <= 200 lines/complexity 25
(100/15 in shared directories), <= 7 parameters, production files <= 1,000. Shared libraries and
services import no component/page, UI primitives import no feature/page, features import no page,
and only services call invoke; type-only imports and re-exports count too. Backend policy is
projected into the UI rather than recomputed here.
Colours and fonts come from the @theme block in src/App.css. Nothing else defines them.
| Use | Token |
|---|---|
| Primary action, positive state | primary-500…900 (emerald) |
| Highlight, award, emphasis | accent-400 (#ffd60a gold), accent-500…900 |
| Success | success-400/500/600 |
| Dark surfaces | navy-900 (deepest) → navy-800 → navy-700 → navy-600 |
| Headings | font-heading (Barlow Condensed), usually uppercase tracking-wider |
| Body | font-sans (Inter) |
bg-[#10b981]) in a component.dark: partner. Light and dark both ship.white / gray-100; their dark counterparts are navy-800 / navy-900.src/components/ui/Button.tsx is the reference for how variants, sizes, and states are composed —
read it before inventing a new pattern.
Not optional, and cheap if done while writing rather than after.
focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-<token> plus dark:focus:ring-offset-navy-800. Removing an
outline without replacing it is a bug.<button> for actions, <a> for navigation, <table> for tabular data,
headings in order. A div with onClick is not keyboard reachable.aria-label={t("…")}, a translated string.Escape, restore focus to the trigger, and are labelled
(role="dialog" + aria-labelledby).aria-sort, aria-live for
result counts).prefers-reduced-motion for anything that animates on its own.Every visible string — and every aria-label, title, placeholder, and alt — is a
translation key in every locale. Use /add-ui-string; don't hand-roll it.
src/store/. Never mutate store state from a component — copy, then set.
(fix/hometab-store-mutation is the regression that made this a rule.)src/services/*Service.ts.Use /write-tests (programme PR 2) for named GWT scenarios. Co-locate Foo.test.tsx next to
Foo.tsx, write it first and watch it fail for the intended reason. Test through the component
and service wiring; helper-only tests cannot prove that a handler calls the helper. A controlled
component needs a stateful host that feeds onChange values back as props, not just vi.fn().
Test service rejection paths and resulting UI feedback, plus failure atomicity when applicable.
// Query by role and accessible name. If this line fails, the component
// is not accessible — the test is doing double duty.
const save = screen.getByRole("button", { name: /save/i });*.helpers.ts file and gets unit-tested directly —
src/components/squad/SquadTab.helpers.ts is the pattern.ui-accessibility-reviewer, i18n-auditor, and ofm-test-reviewer when their surfaces change.npm exec --no -- vitest run src/components/<area>
npm exec --no -- tsc --noEmiti is formation slot i. Substitutions
insert at the vacated index; never append or re-sort. Slot geometry comes from
buildPitchRows(formation) in src/components/squad/SquadTab.helpers.ts, and PitchToken is
the shared token component.player.position is the natural position and is never
mutated. Where a player is currently deployed comes from getDeployedPosition(team, slot).
Role pickers and validators use the deployed slot; player descriptions use the natural position.src/components/ui/index.ts, src/lib/, src/hooks/ before writing anything newdark: partner; checked in both themesaria-labels/add-ui-string (every locale)npm exec --no -- vitest run src/components/<area> and npm exec --no -- tsc --noEmit green© openfootmanager, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/new-ui-surface of openfootmanager/openfootmanager.
Open the folder on GitHubat commit 90b05fd
New UI Surface next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| New UI Surface this skillopenfootmanager/openfootmanager | 1.1k | — | ~1.9k | Automated safety check: Pass | GPL-3.0 | |
| Component Testingmakifbaysal/tasktrooper | 109 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Web Interface Guidelines Reviewervercel-labs/openreview | 1.7k | 98 repos | ~308 | Automated safety check: Pass | None | |
| Accessibility Reviewmarkmead/hyperui | 12k | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Web Animation DesignbaptisteArno/typebot.io | 11k | 2 repos | ~2.7k | Automated safety check: Pass | Custom licence | |
| Accessibility Fixeribelick/ui-skills | 9.5k | 4 repos | ~1.2k | Automated safety check: Pass | MIT |
makifbaysal/tasktrooper
A skill your agent uses when writing or changing any React component - React Testing Library tests are behavior-focused (byRole first), use user-event, assert on accessible output, one behavior per…
vercel-labs/openreview
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…
markmead/hyperui
Run a WCAG 2.1 AA accessibility audit on a design or page. An agent skill from markmead/hyperui.
baptisteArno/typebot.io
Guides easing, timing and animation choices for UI motion, based on a web animation course, and reviews existing animations in a before-and-after table.
ibelick/ui-skills
Audits and fixes HTML accessibility problems such as ARIA labels, keyboard navigation, focus management, contrast and form errors with minimal changes.
vmDeshpande/ai-agent-automation
Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance.
openfootmanager/openfootmanager
Add or change any text a player can see, in every locale the game ships in.
openfootmanager/openfootmanager
Add a field to a domain type so it survives save/load. An agent skill from openfootmanager/openfootmanager.
openfootmanager/openfootmanager
Add a tool to the MCP server that lets AI agents play OpenFoot Manager.
openfootmanager/openfootmanager
Expose new backend behaviour to the frontend over Tauri IPC.
openfootmanager/openfootmanager
Verify a pull request with the frontend scripts, default and MCP backend tests and clippy, formatting, architecture checks and review evidence.
Works with
Categories
Build a new frontend component, panel, dashboard tab, or screen that matches the Matchday design language, works in light and dark, is keyboard and screen-reader accessible, reuses existing…. New UI Surface is an agent skill from openfootmanager/openfootmanager. Build a new frontend component, panel, dashboard tab, or screen that matches the Matchday design language, works in light and dark, is keyboard and screen-reader accessible, reuses existing primitives, and ships with a Testing Library test.
New UI Surface fits situations like: tasks that involve Accessibility.
Run `npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a claude-code`. Or copy the skill folder (.claude/skills/new-ui-surface in openfootmanager/openfootmanager) into .claude/skills/new-ui-surface in your project. Claude Code loads it when a task matches its description.
Run `npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a codex`. Or copy the skill folder (.claude/skills/new-ui-surface in openfootmanager/openfootmanager) into .agents/skills/new-ui-surface in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openfootmanager/openfootmanager --skill new-ui-surface -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-ui-surface, .gemini/skills/new-ui-surface, .github/skills/new-ui-surface and .opencode/skills/new-ui-surface in your project.
Going by SKILL.md and its folder, New UI Surface needs the command-line tools its instructions call (npm). Its frontmatter pre-approves these tools: Read, Edit, Write, Grep, Glob, Bash(npm exec --no -- vitest run src/components*), Bash(npm exec --no -- tsc --noEmit).
SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
New UI Surface is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with New UI Surface: Component Testing (makifbaysal/tasktrooper, 109 stars), Web Interface Guidelines Reviewer (vercel-labs/openreview, 1.7k stars), Accessibility Review (markmead/hyperui, 12k stars) and Web Animation Design (baptisteArno/typebot.io, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
openfootmanager (a GitHub organization) maintains it in openfootmanager/openfootmanager, which has 1,135 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: openfootmanager/openfootmanager on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.