agentleFS
fusebase-devfusebase-dev/fusebase-flow/.agents/skills/skill-authoring/SKILL.md

skill-authoring

Skill9 starsChanged 27 days agoMITView on GitHub

Use when the operator asks to create, update, import, analyze, or preserve a reusable skill or recurring instruction pattern. Do NOT use for one-off ticket work, ordinary code implementation, problem-catalog incidents, or copying external skill text verbatim.

89 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cloud-api-recipe-authoring, codebuddy-ide-mcp-upgrade and 10 more.

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.
  • TencentCloudBaseSkill

    cloud-api-recipe-authoring

    Author or revise a cloud-api-operations recipe (config/source/skills/cloud-api-operations/references/recipes/). Encodes why the long tail of control-plane capabilities is deliberately NOT wrapped as MCP/CLI tools, the API-first admission test for whether a capability deserves a recipe, the negative and positive lists, the fixed recipe structure, the writing rules distilled from writing-for-agents, the user-facing copy red lines, and the product regeneration/verification pipeline. Also routes contributors (and their agents) to the contribution flow and the pre-PR self-test protocol in references/contributing.md. Use when adding a recipe, judging whether a scenario belongs in the recipe set, updating the recipes index, re-checking existing recipes against the admission test, or onboarding someone who wants to submit one.

    Also in 3 projects that use this

  • TencentCloudBaseSkill

    codebuddy-ide-mcp-upgrade

    升级 CodeBuddy IDE(genie 扩展)内置的 CloudBase MCP,以及 MCP 发版时同步 IDE 侧白名单。当用户提到「更新 IDE 里的 MCP」「内置 MCP 版本太老」「IDE 集成的 CloudBase 功能不足」「改工具白名单 toolWhiteList」「把新 bundle 打进 CodeBuddy」「白名单漂移」「MCP 发版要同步什么」时使用。覆盖:解包定位内置 bundle 与内嵌配置、重新构建 mcp bundle、生成新的工具白名单与系统提示词、安全注入 IDE 并备份、用 MCP 协议验证工具清单、人工端到端验收、一键回滚。

    Also in 3 projects that use this

  • DIL8654Skill

    api-contract-review

    Review ASP.NET Core Web API contracts for HTTP semantics, versioning, backward compatibility, and response consistency. Use when the user asks to review an API, check endpoints, validate REST behavior, or before releasing contract changes.

    Also in 5 projects that use this

  • zaxbysauceSkill

    pr-review-fix

    Codex adapter for addressing pull request review feedback in opencode-swarm. Use when the user asks to fix PR review comments, requested changes, reviewer findings, CI-review notes, or a pasted review summary with low false-positive tolerance.

    Also in 3 projects that use this

  • albertdobmeyerSkill

    git-workflows

    Advanced git operations beyond add/commit/push. Use when rebasing, bisecting bugs, using worktrees for parallel development, recovering with reflog, managing subtrees/submodules, resolving merge conflicts, cherry-picking across branches, or working with monorepos.

    Also in 3 projects that use this

  • rogue-dev-studioSkill

    frontend-engineering

    Expert frontend application engineering: accessible UI structure, state and data-fetching discipline, form/validation UX, responsive layouts, performance budgets, and integration with API contracts. Use when building or refining SPA/web screens, design-system consumption, client-side routing, or fixing UI reliability (loading, empty, and error states).

    Also in 3 projects that use this

  • +6 more from TencentCloudBase

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 19 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 80 edited versions we read keep these.

  • 19

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create or update skills without skill sprawl, role drift, mirror drift, or license contamination.

    line 28
  2. Distinctive:

    Default to updating an existing skill when overlap is material.

    line 72
  3. Distinctive:

    Read only to identify capabilities, triggers, constraints, failure modes, and reusable checks.

    line 78
  4. Distinctive:

    Do not copy paragraphs, example blocks, proprietary labels, vendor-specific paths, or exact output formats.

    line 79
  5. Distinctive:

    Remove prohibited or irrelevant brand terms before writing repo files.

    line 81
  6. Distinctive:

    Write a short comparison table: existing Fusebase skill overlap, new capability, recommended role.

    line 82
  7. Distinctive:

    If role ownership is unclear, stop and ask in chat text with 2-3 options.

    line 95
  8. Very specific:

    Use templates/skill-template.md section order.

    line 99
  9. Distinctive:

    If validation cannot run, report the exact missing check and treat the change as incomplete until the operator accepts that gap.

    line 151
  10. Distinctive:

    If the operator wants a new framework skill but overlap is unclear, ask for approval in chat text with an options table: update existing …

    line 224
  11. Distinctive:

    If the skill changes hooks, policies, or workflow semantics, escalate to Architect review before implementation.

    line 225
  12. Distinctive:

    If implementation touches provider mirrors or manifests, hand to AI Developer for canonical edit + mirror regeneration.

    line 226
  13. Distinctive:

    If clean-room status cannot be established, stop and request a concept summary instead of using the source text.

    line 227
  14. Distinctive:

    Do not copy external skill prose, example blocks, or proprietary labels.

    line 246
  15. Very specific:

    Do not write directly to .agents/skills/ or .claude/skills/ as the source of truth.

    line 247
  16. Very specific:

    Do not promote CLI provider assets into canonical flow-skills/ without a separate clean-room proposal and non-overlap analysis.

    line 248
  17. Distinctive:

    Do not add a new skill when a narrow update to an existing skill covers the behavior.

    line 249
  18. Distinctive:

    Do not use a skill for a one-off bug that belongs in the problem catalog.

    line 250
  19. Distinctive:

    Do not make Product Owner sessions implement code or AI Developer sessions lock product decisions.

    line 251
  20. Distinctive:

    Do not ask skill-authoring questions through popup / clickable menus.

    line 252
  21. Distinctive:

    Do not leave mirrors, manifests, counts, or release docs stale after adding a framework skill.

    line 253
  22. Distinctive:

    Do not change a skill's trigger/gate in one section and leave any other § Retrofit-hygiene sweep surface on the old gate — that section …

    line 254

“Common” is measured: kept by at least 6 in 10 of the 80 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

Skill Authoring

Style: Mode-B-lite. Clean-room, Fusebase-specific procedure for deciding, writing, wiring, and validating reusable skills.

Purpose

Create or update skills without skill sprawl, role drift, mirror drift, or license contamination. This skill governs reusable instruction capture: what deserves a skill, where it belongs, which role uses it, and what validation proves it was authored cleanly.

When to invoke

  • Operator asks to create, update, install, import, compare, or analyze a skill.
  • Operator provides an external skill, prompt, guide, or workflow and asks to reproduce similar capability in Fusebase Flow.
  • A recurring pattern should become durable reusable expertise.
  • Existing skill behavior needs tightening after a missed bug, failed handoff, or repeated role drift.
  • A framework skill is added or changed and provider mirrors/manifests must stay in sync.

Do not invoke when

  • The request is normal per-ticket implementation covered by implementation-planning, validation-and-qa, or another domain skill.
  • The issue is a one-off failure with a concrete cause; file docs/problem-catalog/<slug>/problem.md instead.
  • The operator wants to copy external text verbatim. Refuse copying and offer clean-room capability extraction.
  • The topic is already covered by an existing skill and only needs normal use, not authoring or update.
  • A provider mirror is the only target. Canonical skill edits start in flow-skills/ (framework) or docs/skills/ (project-local); mirrors are generated or deliberately promoted.

Required inputs

InputWhere it livesIf missing
Operator requestchatStop; skill purpose depends on requested reuse
Candidate source materialattachment, repo file, operator summary, or observed repeated patternProceed only from available concepts; do not invent missing domain rules
Existing skill catalogflow-skills/, .agents/skills/, .claude/skills/, docs/skills/README.mdSearch before adding; avoid duplicate skills
CLI edition map, for CLI provider assetsdocs/fusebase-cli-edition.mdTreat provider assets as domain support, not canonical Flow skills
Skill substratetemplates/skill-template.mdStop; use the canonical section order
Role boundariesFLOW_RULES.md, flow-skills/role-discipline/references/<role>.md, agents/*/AGENT.mdStop if role ownership cannot be assigned
Clean-room constraintsdocs/source-map.md, docs/clean-room.mdTreat external material as concept-only
Mirror processhooks/local/mirror-skills.sh, audit/skill-mirror-manifest.txtRequired for framework skill changes

Procedure

1. Classify the reusable knowledge

If the pattern is...DestinationOwner
Useful to every Fusebase Flow project and description-matchable by agentsflow-skills/<slug>/SKILL.mdFramework change; PO defines, AI Developer implements
Fusebase Apps CLI runtime/domain guidance already present in provider assets.agents/skills/<slug>/ and .claude/skills/<slug>/Provider asset; reference from Flow artifacts, do not duplicate
Specific to one target project after 3+ repeated usesdocs/skills/<slug>/SKILL.mdProduct Owner / project team
A one-off incident, outage, or diagnostic lessondocs/problem-catalog/<slug>/problem.mdProduct Owner
A one-ticket design or architecture choicedocs/specs/<slug>/decisions.mdProduct Owner / Architect
Already covered by an existing skillUpdate that skill or leave unchangedDepends on owning role

Default to updating an existing skill when overlap is material. Add a new framework skill only when the trigger, procedure, failure modes, and role boundary are distinct.

2. Extract capability clean-room

For external material:

  1. Read only to identify capabilities, triggers, constraints, failure modes, and reusable checks.
  2. Do not copy paragraphs, example blocks, proprietary labels, vendor-specific paths, or exact output formats.
  3. Replace product/tool-specific assumptions with Fusebase Flow concepts: role, phase, artifact path, workflow, skill, policy, hook, mirror.
  4. Remove prohibited or irrelevant brand terms before writing repo files.
  5. Write a short comparison table: existing Fusebase skill overlap, new capability, recommended role.

The authorized MIT import documented at docs/source-map.md#karpathy-guidelines is a narrow exception to this skill's no-copy instructions and clean-room metadata requirements; preserve its license notice. Other imports remain concept-only.

3. Assign role applicability

RoleAllowed authoring responsibility
Product OwnerDecide whether a skill is needed; classify framework vs project skill; define trigger, purpose, acceptance criteria, role applicability, and non-overlap
ArchitectReview skill design when it changes role boundaries, workflows, hooks, provider compatibility, or broad framework semantics
AI DeveloperImplement approved skill edits; update canonical files; regenerate mirrors; run validation; report evidence
Deploy phaseNo skill authoring; may surface post-deploy lessons for PO curation

If role ownership is unclear, stop and ask in chat text with 2-3 options; do not use popup / clickable menus.

4. Author the skill

Use templates/skill-template.md section order. Keep the body Mode-B-lite:

SectionRequirement
Frontmattername, trigger-rich description, source_inspiration: conceptual-only, license_status: clean-room-original, version, risk, invocation, outputs, workflows, hooks
Purpose1-3 sentences; why this exists separately
When to invokeconcrete triggers the matcher/operator can recognize
Do not invoke whennegative triggers to prevent sprawl
Required inputstable with location and fallback
Procedurenumbered or role-scoped steps
Worked exampleprocedure-heavy skills only: one compact example (≤12 lines) after Procedure — input → step outcomes → output
Output artifactspaths and chat/artifact mode
Failure casesdetection and response
Escalation pathnext skill/workflow/operator question
Anti-patternsthings the skill must not do
Clean-room notestandard Fusebase attestation

Move long examples or variant-specific detail into references/ only when needed. Do not create README, quick-reference, changelog, or other auxiliary files inside a skill folder.

5. Wire framework skills

For flow-skills/<slug>/SKILL.md changes, check whether each surface needs an update:

SurfaceUpdate when
flow-skills/role-discipline/references/<role>.mdrole don't-list or refusal phrasing changes (shared protocols: flow-skills/role-discipline/SKILL.md)
agents/product-owner/AGENT.mdPO / Architect should load or invoke the skill
agents/ai-developer/AGENT.mdAI Developer / Deploy phase should load or invoke the skill
workflows/*.mda workflow creates, consumes, or validates the skill
templates/*.mdgenerated artifacts need fields from the skill
README.md, docs/framework.md, docs/compatibility.md, docs/source-map.mdskill counts, catalog, compatibility, or attestation counts change
CHANGELOG.md, docs/release-notes/<version>.mdrelease-visible capability changes

Then run hooks/local/mirror-skills.sh and, if agent files changed, hooks/local/mirror-agents.sh.

6. Validate

Minimum validation for framework skill changes:

CheckExpected
Mirror integritycanonical skill hash matches .agents/skills/ and .claude/skills/; manifest regenerated
Agent mirror integritycanonical agent hash matches .claude/agents/ and .codex/agents/ if agents changed
Source-leak scanno external/prohibited names, copied phrases, or vendor-specific paths introduced
Count scanno stale skill-count references after adding/removing framework skills
CLI provider boundaryprovider CLI assets remain outside canonical flow-skills/ unless separately approved as clean-room Flow framework skills
Format checkgit diff --check clean except known line-ending warnings
Scope reviewno unrelated refactors or duplicated skill responsibilities
Retrofit hygieneon any trigger/gate change: propagation sweep clean — grep for each pre-change trigger phrase / artifact path returns 0 unexplained hits in the skill (see Retrofit-hygiene sweep below)
Matcher dry-runon new skills / description changes: own description keyword-claims each of its 3-5 trigger phrases and none of its named siblings' phrases against the full description catalog (see Matcher dry-run below)
Worked exampleprocedure-heavy skill (Procedure with 3+ steps or a decision table) contains exactly one compact ## Worked example (≤12 lines)

If validation cannot run, report the exact missing check and treat the change as incomplete until the operator accepts that gap.

Retrofit-hygiene sweep (mandatory on any trigger/gate change)

A trigger/gate change = any edit to when the skill fires, what artifact gates it, which inputs it accepts, or which role owns it. Partial retrofits create self-contradicting skills; ALL surfaces update in the SAME edit:

SurfaceMust reflect the new trigger/gate
Frontmatter description"Use when / ONLY when" names the new trigger/artifact set; no stale names
Header style line + Purposegating statement matches the new set
When to invoke / Do not invoke whenpositive and negative triggers updated symmetrically
Required inputsrows and "If missing" behavior accept the new set
Procedureevery step — especially existence/first-step gates — checks the new set
Failure cases + Escalation pathdetection, response, and referenced artifacts use the new set
External restatementssibling skills, README catalog, AGENTS.md overlay, agents/*/AGENT.md lines quoting this trigger

Mechanical check: for each pre-change trigger phrase / artifact path, grep -n '<old-string>' flow-skills/<slug>/SKILL.md → 0 hits, or every remaining hit is deliberate and explained in the change evidence.

Anti-example (real): business-logic-guardian v3.5 was retrofitted to accept business-logic-index.md in "When to invoke", but frontmatter description, Required inputs, Procedure step 1, and Escalation still gated on business-logic.md only — the skill no-opped on projects holding only the index and contradicted its own body. This sweep exists to make that class impossible.

Matcher dry-run (mandatory on new skills and description changes)

StepActionPass condition
1List 3-5 operator phrases this skill claims (from description + When to invoke)—
2Dump the catalog: grep -H '^description:' flow-skills/*/SKILL.md. Per own phrase: (a) confirm THIS skill's description contains the phrase's 1-2 distinctive keywords — absent keywords = phrase never fires; (b) scan every other description for those keywords — any that also plausibly claims the phrase = COLLISIONevery own phrase keyword-present in own description; every collision resolved: add an explicit "<sibling> owns that" Do-NOT clause here or narrow the trigger
3List 2-3 phrases owned by the nearest siblings (skills named in this skill's "Do NOT use" line or Do-not-invoke section)own description claims NONE of their keywords (step 2b scan, reversed)
4Record the phrase → winning-skill table in change evidence (chat or gate note)table present

Any keyword-absent own phrase, unresolved collision, or claimed sibling phrase → fix description / Do-not-invoke boundaries BEFORE running mirror-skills.sh.

Worked-example requirement

Every procedure-heavy skill — Procedure with 3+ steps or a decision table — carries exactly ONE ## Worked example after Procedure: ≤12 lines, Mode-B-lite, concrete input → key step outcomes → produced artifact. One example, not a tutorial; variant detail goes to references/ only if genuinely needed. Applies to new skills at authoring time and to any existing skill on its next material update — no mass retro-edit of untouched skills.

Worked example

Request: "guardian should also accept the new index doc" — a trigger/gate change to an existing framework skill.

  1. Classify (§1): update existing business-logic-guardian; no new skill.
  2. Author (§4): add business-logic-index.md to the activation gate.
  3. Retrofit sweep (§6): grep -n 'business-logic\.md' flow-skills/business-logic-guardian/SKILL.md → update frontmatter description, When/Do-not-invoke, Required inputs, Procedure step 1, Escalation in the SAME edit; 0 unexplained stale hits.
  4. Matcher dry-run (§6): "don't break the business logic" → guardian wins; "document the business logic" → app-business-docs still wins.
  5. Wire + mirror (§5): hooks/local/mirror-skills.sh; manifest regenerated.

Evidence: sweep greps + dry-run table in the gate note.

Output artifacts

ArtifactPath or locationMode
Skill analysis / recommendationchatMode A
Framework skillflow-skills/<slug>/SKILL.mdMode-B-lite
Project skilldocs/skills/<slug>/SKILL.mdMode-B-lite
Problem-catalog alternativedocs/problem-catalog/<slug>/problem.mdMode B
Mirror manifestaudit/skill-mirror-manifest.txtgenerated
Agent mirror manifestaudit/agent-mirror-manifest.txtgenerated when agents change

Failure cases

Failure modeDetectionResponse
Duplicate skillExisting skill has same trigger/procedureUpdate existing skill or recommend no change
External text copiedSource-leak scan or review finds copied prose/examplesReplace with clean-room rewrite before claiming done
Wrong locationProject-specific skill added under flow-skills/, or framework skill placed only under docs/skills/Move to correct surface and update references
Mirror driftPreflight/hash check finds mirror mismatchRun mirror script and re-check
Role driftPO writes production code via skill, or AI Developer changes product directionStop; apply role-discipline refusal and re-scope
Overlong skillSKILL.md grows toward large reference-guide sizeSplit variant detail into references/ and keep SKILL.md procedural
Stale retrofitretrofit-hygiene sweep finds a section still describing the pre-change trigger/gatepropagate in the same edit; re-sweep to 0 stale hits before mirroring
Trigger collisionmatcher dry-run finds a keyword-absent own phrase, an unresolved description collision, or a claimed sibling phraserewrite description / Do-not-invoke boundary; re-run dry-run

Escalation path

  • If the operator wants a new framework skill but overlap is unclear, ask for approval in chat text with an options table: update existing skill, create new skill, or file project skill.
  • If the skill changes hooks, policies, or workflow semantics, escalate to Architect review before implementation.
  • If implementation touches provider mirrors or manifests, hand to AI Developer for canonical edit + mirror regeneration.
  • If clean-room status cannot be established, stop and request a concept summary instead of using the source text.

Domain-expert skill mode

Use when the operator wants a skill that makes the agent an expert in a specific product area / industry (e.g. dental clinics, legal intake, fitness) so app work uses best-practice patterns and known market-solution categories instead of reinventing the wheel. The produced skill is project-local (lives under the project's own skill area, not Flow canonical flow-skills/, and is not mirrored or added to the Flow manifest) and is input-dependent — it needs the operator's domain + any research they supply.

StepAction
1. Confirm needA real, repeated domain — not a one-off ticket. One domain = one skill.
2. Gather inputsOperator's vision + research dropped at docs/<app>/research/. The agent does NOT invent domain facts.
3. Scope the expertiseDomain vocabulary, standard workflows, common entities/data, regulatory/trust constraints, typical client-vs-internal needs.
4. Market awarenessList the categories of established solutions so the agent reuses proven patterns — never copy competitor names, prose, code, or licensed assets (clean-room).
5. AuthorFollow templates/skill-template.md; description leads with the domain triggers; cite where each domain fact came from.
6. Place (do NOT mirror)Project-local domain skill, not Flow canonical. Do not run mirror-skills.sh for it; do not add it to audit/skill-mirror-manifest.txt.

The authoring method here is generic (ships with Flow); the produced domain skill is project-specific and absent by default.

Anti-patterns

  • Do not copy external skill prose, example blocks, or proprietary labels.
  • Do not write directly to .agents/skills/ or .claude/skills/ as the source of truth.
  • Do not promote CLI provider assets into canonical flow-skills/ without a separate clean-room proposal and non-overlap analysis.
  • Do not add a new skill when a narrow update to an existing skill covers the behavior.
  • Do not use a skill for a one-off bug that belongs in the problem catalog.
  • Do not make Product Owner sessions implement code or AI Developer sessions lock product decisions.
  • Do not ask skill-authoring questions through popup / clickable menus; use chat text per FR-19.
  • Do not leave mirrors, manifests, counts, or release docs stale after adding a framework skill.
  • Do not change a skill's trigger/gate in one section and leave any other § Retrofit-hygiene sweep surface on the old gate — that section owns the ONLY surface list (never re-enumerate it elsewhere); run the sweep in the same edit or do not ship.

Clean-room note

Original Fusebase Flow content. Designed after reviewing public AI coding workflow patterns; no third-party code, prompts, skill files, or hook scripts are copied. See docs/source-map.md.

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.