agentleFS
kostja94kostja94/bricks/skills/component-builder/SKILL.md

component-builder

Skill192 starsChanged 6 days agoMITView on GitHub

Build new interface components and bounded composition patterns inside an existing project. Use for named components, interface blocks, and workspaces. Preserve the target project's design system and stack; for a complete new page with page-level structure and multiple sections, use Pagina page-builder instead. Do not use to audit or reconstruct an existing component, plan a whole product or website, or handle purely editorial copy requests.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. jrpease/throughline★ 80same name
    2. weellio/gander★ 10same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create new components that belong in the target product instead of producing isolated demo UI.

    line 10
  2. Distinctive:

    Read references/workflow.md for construction work.

    line 28
  3. Distinctive:

    Read references/pagina.md when the request may be a complete page rather than a bounded component.

    line 30
  4. Distinctive:

    Verify the component in its actual page context.

    line 40
  5. Distinctive:

    Do not add dependencies without a concrete implementation benefit.

    line 49
  6. Distinctive:

    Do not claim compliance, performance, or conversion outcomes that were not tested.

    line 50
  7. Distinctive:

    Use proven domain libraries when the component depends on complex editors, tables, charts, calendars, accessibility primitives, or agent …

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Component Builder

Create new components that belong in the target product instead of producing isolated demo UI.

Start With The Project

Inspect the relevant page, nearby components, design tokens, dependencies, content model, responsive conventions, and tests before choosing an implementation. Reuse established primitives and icon libraries. Do not replace an existing design system merely because another library is familiar.

Identify:

  • the requested component concept and user task;
  • the surface and interface type;
  • where the new component belongs and which existing primitives it may reuse;
  • the component's real content and states;
  • the target stack and existing ownership boundary.

For a page composition, define the page's job and reuse child components from the catalog. Do not turn a page pattern into a second maintenance source for every component it contains.

Load Only Relevant Guidance

Read references/workflow.md for construction work. Read references/foundational-controls.md when the request involves Button, Link, Input, Select, Form, or another foundational control and references/quality-gates.md before final verification.

Read references/pagina.md when the request may be a complete page rather than a bounded component.

Find the component ID in ../../catalog/components.json, then read only its referenced component file. If the requested concept is absent, use the shared workflow, state the inferred canonical name in the result, and do not invent a permanent catalog entry unless the task includes repository maintenance.

Build

  1. Define the semantic responsibility and boundary before styling.
  2. Choose a variant from context and content, not fashion.
  3. Preserve project conventions and integrate real content or data contracts.
  4. Implement expected states, responsive behavior, keyboard behavior, and failure handling.
  5. Verify the component in its actual page context. A component that only looks correct in isolation is incomplete.

Boundaries

  • One component concept has one maintained reference. Role, placement, visual variant, and runtime state do not create new catalog entries.
  • Established independent terminology and discovery intent may justify separate entries that share a model, as with Grid, List, and Masonry.
  • A component reference is guidance, not a fixed code template.
  • Bounded composition patterns may coordinate catalog components. Complete page construction belongs to Pagina; whole-site information architecture and product planning remain outside both component construction and this skill.
  • For existing-component audit or reconstruction, use component-auditor if available; for project discovery use component-inventory, and for unused components use component-cleanup. If unavailable, report the appropriate workflow instead of treating this construction skill as an audit tool.
  • Do not add dependencies without a concrete implementation benefit.
  • Do not claim compliance, performance, or conversion outcomes that were not tested.
  • Use proven domain libraries when the component depends on complex editors, tables, charts, calendars, accessibility primitives, or agent runtimes.

Completion

Report what changed, which project conventions were reused, how the component was verified, and any material constraint that remains.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.