agentleFS
TheunsBarnardtTheunsBarnardt/claude-fdl/.claude/skills/fdl-create/SKILL.md

fdl-create

Skill0 starsChanged 8 months agoMITView on GitHub

Create a new FDL blueprint from a feature description

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. TheunsBarnardt/ai-fdl-kit★ 149% same

    Wrote their own version · 0

    None found.

    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 repository10 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a new FDL blueprint by having a conversation with the user.

    line 11
  2. Distinctive:

    NEVER show YAML to the user during the conversation

    line 29
  3. Distinctive:

    NEVER ask the user to "define flows" or "specify validation rules"

    line 30
  4. Distinctive:

    NEVER use FDL jargon (fields, outcomes, events, etc.) — use plain language

    line 31
  5. Distinctive:

    DO use the AskUserQuestion tool to present choices

    line 32
  6. Distinctive:

    DO offer smart defaults based on domain knowledge

    line 33
  7. Distinctive:

    DO summarize what you'll create in plain-English bullet points

    line 34
  8. Distinctive:

    DO generate the YAML silently and just show the final summary

    line 35
  9. Very specific:

    If the user gave a clear feature name (e.g., /fdl-create checkout payment), use domain knowledge to fill in most details.

    line 41
  10. Distinctive:

    DO NOT ask more than 2 questions in Phase 1: Use domain knowledge for everything else.

    line 53
  11. Distinctive:

    If existing blueprints should reference this new feature:

    line 135
  12. Very specific:

    When generating the blueprint, prefer outcomes over flows:

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

FDL Create — Blueprint Authoring Skill

Create a new FDL blueprint by having a conversation with the user. The user does NOT need to know YAML or the FDL schema — ask plain-language questions, offer smart defaults, and generate everything behind the scenes.

Usage

/fdl-create checkout payment
/fdl-create file-upload data
/fdl-create expense-approval workflow
/fdl-create roles access

Arguments

  • <feature-name> — Kebab-case feature identifier (e.g., checkout, file-upload)
  • [category] — Optional. One of: auth, data, access, ui, integration, notification, payment, workflow. If omitted, infer or ask.

Core Principle: The User Knows NOTHING About YAML

  • NEVER show YAML to the user during the conversation
  • NEVER ask the user to "define flows" or "specify validation rules"
  • NEVER use FDL jargon (fields, outcomes, events, etc.) — use plain language
  • DO use the AskUserQuestion tool to present choices
  • DO offer smart defaults based on domain knowledge
  • DO summarize what you'll create in plain-English bullet points
  • DO generate the YAML silently and just show the final summary

Workflow

Phase 1: Understand the Feature (1-2 questions max)

If the user gave a clear feature name (e.g., /fdl-create checkout payment), use domain knowledge to fill in most details. Only ask what you genuinely don't know.

Use AskUserQuestion with options like:

Question 1 — Scope (only if unclear): "What should the checkout feature handle?"

  • Options: "Simple one-time payment", "Subscription/recurring billing", "Multi-step with cart review", etc.

Question 2 — Users (only if unclear): "Who uses this feature?"

  • Options: "Any visitor (public)", "Logged-in users only", "Admin/staff only", "Multiple roles"

DO NOT ask more than 2 questions in Phase 1. Use domain knowledge for everything else.

Phase 2: Present Smart Defaults (confirmation, not interrogation)

Based on the feature name, category, and your domain knowledge, draft the full blueprint internally. Then present a plain-English summary for confirmation:

Here's what I'll create for the checkout feature:

DATA IT COLLECTS:
  - Payment method (card token from Stripe/payment provider)
  - Billing amount and currency
  - Billing address (street, city, state, zip, country)

WHAT SHOULD HAPPEN:
  ✓ Successful payment → order confirmed, receipt emailed, redirect to confirmation page
  ✗ Card declined → show "Payment was declined, please try another card"
  ✗ Insufficient funds → same message (don't reveal the specific reason)
  ✗ Payment provider down → show "Unable to process payment, please try again"
  ✗ Too many attempts → rate limit (10 per hour per user)

SECURITY:
  - Requires login
  - Card details never touch our server (tokenized via Stripe)
  - Rate limited to prevent abuse
  - Amount validated server-side (can't be modified by client)

CONNECTS TO:
  - Cart (required) — needs items to check out
  - Login (required) — must be authenticated
  - Order history (recommended) — view past orders

Want me to adjust anything, or should I create it?

Use AskUserQuestion: "Does this look right?"

  • "Yes, create it" (proceed)
  • "I want to change something" (ask what)
  • "Add more detail" (ask which area)

Phase 3: Generate Silently

  1. Check existing blueprints — Glob for blueprints/**/*.blueprint.yaml, ensure no duplicate
  2. Generate the blueprint YAML with ALL sections:
    • feature, version, description, category, tags
    • fields — with name, type, required, label, placeholder, validation
    • rules — business logic, security, rate limiting
    • outcomes — given/then/result for each scenario (preferred over flows for AI code gen)
    • flows — step-by-step procedures ONLY if the feature involves human actors or business processes
    • errors — UPPER_SNAKE_CASE codes with user-safe messages
    • events — dot.notation names with payloads
    • actors — only if multiple roles are involved
    • states — only if there's a lifecycle/status field
    • sla — only if there are time constraints
    • related — connections to existing blueprints
    • ui_hints — layout, field order, accessibility
  3. Write the file to blueprints/{category}/{feature}.blueprint.yaml
  4. Validate — run node scripts/validate.js on the file
  5. Fix any validation errors silently and re-validate

Phase 4: Show Summary

Show a clean summary (no YAML):

Created: blueprints/payment/checkout.blueprint.yaml

  checkout v1.0.0 — Process a payment for items in the cart

  Data:      4 fields (payment_token, amount, currency, billing_address)
  Outcomes:  4 scenarios (success, card declined, provider error, rate limited)
  Security:  Auth required, rate limited, tokenized payments
  Events:    3 (checkout.success, checkout.failed, checkout.refunded)
  Connects:  cart (required), login (required), order-history (recommended)

  Validation: PASS ✓

  Next: Run /fdl-generate checkout nextjs to create the code

Phase 5: Update Related Blueprints

If existing blueprints should reference this new feature:

  1. Tell the user: "The login blueprint should reference checkout — want me to add that?"
  2. On confirmation, add the related entry to the existing blueprint

Outcomes Format (use this instead of flows for code generation)

When generating the blueprint, prefer outcomes over flows:

outcomes:
  successful_checkout:
    given:
      - user is authenticated
      - cart has at least one item
      - payment token is valid
      - billing address is complete
      - amount matches server-calculated total
    then:
      - payment is charged via provider
      - order record is created with status "confirmed"
      - cart is cleared
      - confirmation email is sent
      - checkout.success event is emitted
    result: redirect to order confirmation page

  card_declined:
    given:
      - payment provider returns decline
    then:
      - checkout.failed event is emitted
      - no order is created
    result: show "Payment was declined. Please try another payment method."

When to Include flows Alongside outcomes

Include BOTH outcomes AND flows when:

  • The feature involves human actors performing manual steps (approvals, reviews)
  • The feature is a business process that needs to be documented as a procedure
  • The category is workflow

For pure technical features (login, checkout, CRUD), outcomes alone is sufficient.

Quality Checklist (internal — don't show to user)

Security

  • Public features have rate limiting
  • Sensitive fields marked sensitive: true
  • Error messages don't leak internal state
  • Auth requirements specified in rules

Completeness

  • Every success scenario has an outcome
  • Every failure scenario has an outcome
  • Every error has a code, status, and message
  • Related features are identified
  • Events cover success AND failure

Conventions

  • Feature name: kebab-case
  • Field names: snake_case
  • Error codes: UPPER_SNAKE_CASE
  • Event names: dot.notation
  • Actor IDs: snake_case
  • Comments explain WHY, not WHAT

Example: What a Good Outcome Looks Like

User says: /fdl-create file-upload data

You ask (Phase 1): "What kind of files will users upload?"

  • Profile pictures / avatars
  • Documents (PDF, Word, etc.)
  • Any file type
  • Mixed (images + documents)

You present (Phase 2):

Here's what I'll create for file upload:

DATA IT NEEDS:
  - The file itself (max 10MB, accepts images + PDFs)
  - An optional description/label for the file
  - Which record this file belongs to (e.g., user profile, expense report)

WHAT SHOULD HAPPEN:
  ✓ File uploaded → validated, stored, thumbnail generated (for images), linked to record
  ✗ File too large → "File must be under 10MB"
  ✗ Wrong file type → "Only images and PDFs are accepted"
  ✗ Upload fails → "Upload failed, please try again"
  ✗ Storage full → "Unable to store file, please contact support"

SECURITY:
  - File content is validated (not just extension — check magic bytes)
  - Filenames are sanitized (prevent path traversal)
  - Files stored outside webroot (no direct URL access)
  - Virus/malware scanning (optional, recommended)
  - Rate limited: 20 uploads per hour per user

CONNECTS TO:
  - Login (required) — must be authenticated
  - Any feature that accepts attachments

Want me to adjust anything?

You generate (Phase 3): A complete blueprint with outcomes like:

outcomes:
  successful_upload:
    given:
      - user is authenticated
      - file size is under max_size_mb (10MB)
      - file MIME type matches allowed_types (validated via magic bytes, not just extension)
      - filename is sanitized (no path traversal characters)
      - user has not exceeded upload rate limit (20/hour)
    then:
      - file is stored in configured storage backend (local, S3, etc.)
      - file record is created with original_name, stored_path, size, mime_type, uploaded_by
      - if image, thumbnail is generated at configured dimensions
      - file_upload.success event is emitted
    result: return file record with ID and URL

  file_too_large:
    given:
      - file size exceeds max_size_mb
    result: show "File must be under 10MB"

Notice: the outcomes describe WHAT must be true, not HOW to implement it. The code generator decides whether to use multer, busboy, S3 SDK, etc.

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.