agentleFS
codechupcodechup/claude-code-lab/.claude/skills/new-component/SKILL.md

new-component

Skill0 starsChanged 2 months agoMITView on GitHub

Scaffold a new store.ts operation (function stub + test stub) from a name, then implement it. Tool-running — runs a script, then writes real code in a forked context.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use new-page.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • kkhh26864Skill

    new-page

    Vue 2 page creation specialist. Auto-triggers when user wants to: create new page, add page, build page, new vue page, create vue component page. Handles: page structure, routing, Vant components, Tailwind styling, mobile optimization. Works with Vue 2.6.11, Vant 2.13.2, Tailwind CSS, Vue Router.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run node .claude/skills/new-component/scaffold.mjs $ARGUMENTS to print a starting stub.

    line 14
  2. Very specific:

    Read src/store.ts and test/store.test.ts to match existing conventions (named exports, InvalidTaskError for bad input, an injectable clock …

    line 15
  3. Very specific:

    Write the real implementation into src/store.ts and a real test into test/, replacing the TODOs from the stub.

    line 17
  4. Very specific:

    Run npm test and report the result before finishing.

    line 19

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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

/new-component

  1. Run node .claude/skills/new-component/scaffold.mjs $ARGUMENTS to print a starting stub.
  2. Read src/store.ts and test/store.test.ts to match existing conventions (named exports, InvalidTaskError for bad input, an injectable clock for anything time-based).
  3. Write the real implementation into src/store.ts and a real test into test/, replacing the TODOs from the stub.
  4. Run npm test and report the result before finishing.

Runs in a forked context so this exploration doesn't consume the parent session's context window — only the final diff and test result need to come back.

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.