fdl-create
Skill1 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
- TheunsBarnardt/claude-fdledited, first seen Apr 3, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- TheunsBarnardt/claude-fdl★ 096% 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 repository17 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- fdl-auto-evolveSkill
- fdl-brainstormSkill
- fdl-buildSkill
- fdl-build-yamlSkill
- fdl-extract-code-featureSkill
- fdl-extract-codeSkill
- fdl-extract-designSkill
- fdl-extractSkill
- fdl-extract-webSkill
- fdl-generateSkill
- fdl-installSkill
- fdl-propagate-agiSkill
- fdl-pr-reviewSkill
- fdl-recommend-discoverSkill
- fdl-researchSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 14 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Create a new FDL blueprint by having a conversation with the user.
- Distinctive: line 29
NEVER show YAML to the user during the conversation
- Distinctive: line 30
NEVER ask the user to "define flows" or "specify validation rules"
- Distinctive: line 31
NEVER use FDL jargon (fields, outcomes, events, etc.) — use plain language
- Distinctive: line 32
DO use the AskUserQuestion tool to present choices
- Distinctive: line 33
DO offer smart defaults based on domain knowledge
- Distinctive: line 34
DO summarize what you'll create in plain-English bullet points
- Distinctive: line 35
DO generate the YAML silently and just show the final summary
- Distinctive: line 47
Run these steps in order, one question at a time, never in a batch:
- Distinctive: line 71
Wait for acknowledgment after each section before moving on.
- Very specific: line 79
If the user gave a clear feature name (e.g., /fdl-create checkout payment), use domain knowledge to fill in most details.
- Distinctive: line 91
DO NOT ask more than 2 questions in Phase 1: Use domain knowledge for everything else.
- Very specific: line 136
Write a *draft* stub blueprint (feature, description, tags only) to a temp path so the similarity scanner has something to compare against: …
- Distinctive: line 138
Simpler rule that works now: after drafting the full YAML (step 2) but before writing the file, run:
- Very specific: line 152
Use RFC 2119 prefixes: MUST: for non-negotiable (security, data integrity), SHOULD: for best practice, MAY: for optional enhancements
- Very specific: line 168
When including agi, add at minimum: goals (with success_metrics), autonomy (with level and human_checkpoints), and safety (with …
- Distinctive: line 197
If existing blueprints should reference this new feature:
- Very specific: line 203
When generating the blueprint, prefer outcomes over flows:
- Distinctive: line 267
Every new blueprint MUST include the three AI-proofing fields.
- Very specific: line 273
Cross-validation: every error_code listed under api.response.errors[] must also appear in the top-level errors[] block.
≈ “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.
Files
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 accessArguments
<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 0: Socratic Elicitation (only when the input is vague)
When to use: The user gave you a feature name with no context, or said something like "help me think through X", or a previous skill (/fdl-brainstorm) handed off to you with an open-ended idea.
When to SKIP: The user gave a clear, specific feature name with known domain (e.g., /fdl-create checkout payment — you already know what checkout does). Skipping is correct 90% of the time. Do NOT interrogate users who already know what they want.
Borrowed from the Superpowers brainstorming skill, re-bound to produce a blueprint (not a markdown design doc). The terminal state is always a validated .blueprint.yaml file.
Run these steps in order, one question at a time, never in a batch:
- Explore context first — Glob
blueprints/**/*.blueprint.yamlto see what already exists. If a similar blueprint exists, tell the user: "There's already a{existing}blueprint that covers X — should this be a variant, or something distinct?" - Purpose question — "What problem does this feature solve for the user?" Listen for the core outcome, not the mechanism.
- Constraints question — "What must be true for this to be considered done?" This surfaces success criteria that become
outcomes[].givenandoutcomes[].result. - Failure-mode question — "What should happen when things go wrong? (Invalid input, rate limit, permissions, external service down, ...)" Every blueprint MUST model failure paths — the completeness checker will reject blueprints with no failure outcomes.
- Propose 2-3 approaches with trade-offs — Don't jump to a single design. Example:
"There are a few ways to model this:
- A. Simple CRUD — one outcome per operation, no state machine. Good if lifecycle is trivial.
- B. State machine — add
states:with transitions and actors. Good if there's a meaningful lifecycle (draft → submitted → approved). - C. Workflow — add
actors:andflows:for human-driven steps. Good if approvals are involved.
My recommendation is B because you mentioned approvals. Which fits your mental model?"
- Present the blueprint design as sections, iteratively — Not one giant dump. Walk through:
- Data (what becomes
fields:) - Success outcomes (what becomes
outcomes.success_*) - Failure outcomes (what becomes
outcomes.failure_*with bounderror:codes) - Security rules (what becomes
rules.security) - Related blueprints (what becomes
related:) Wait for acknowledgment after each section before moving on.
- Data (what becomes
- HARD GATE — no YAML written until user approves the full design. This is non-negotiable. If the user wants to change something, loop back to step 6 for that section only.
- Generate the blueprint YAML silently (see Phase 3 below). Output is a validated
.blueprint.yamlfile, not a markdown design doc.
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
Terminal state rule (non-negotiable): The only acceptable output of this skill is a validated .blueprint.yaml file. Not a markdown spec. Not a task list. Not a design doc. If you cannot produce a blueprint that passes BOTH node scripts/validate.js AND node scripts/completeness-check.js, the skill has failed — ask the user for more information rather than writing a placeholder blueprint.
- Check existing blueprints for near-duplicates — before authoring a single line of YAML:
- Write a draft stub blueprint (feature, description, tags only) to a temp path so the similarity scanner has something to compare against:
/tmp/{feature}.draft.yaml. - Actually easier — tokenize the user's feature name + description inline and run the scanner over the existing corpus, OR just do a name/tag glob first, then a full content scan once the blueprint is drafted.
- Simpler rule that works now: after drafting the full YAML (step 2) but before writing the file, run:
# Write draft to a temp path first, then: node scripts/similarity.js /tmp/{feature}.draft.blueprint.yaml --threshold 0.55 --json - Act on the result:
- Top match ≥ 0.75 — STOP. Show the user: "A very similar blueprint already exists:
{match.file}(similarity {score}). Possible actions: (a) extend the existing one, (b) differentiate — tell me what's unique about this feature that the existing one misses, (c) proceed anyway if this is a deliberate sibling/variant." Do not write the file until the user confirms. - Top match 0.55–0.75 — WARN. Show: "Existing blueprint
{match.file}looks related ({score}). I'd suggest adding it torelated[]— shall I?" Proceed with creation after. - Top match < 0.55 — proceed silently.
- Top match ≥ 0.75 — STOP. Show the user: "A very similar blueprint already exists:
- Also do the cheap filename glob check — if
blueprints/{category}/{feature}.blueprint.yamlalready exists, abort immediately regardless of similarity score.
- Write a draft stub blueprint (feature, description, tags only) to a temp path so the similarity scanner has something to compare against:
- Generate the blueprint YAML with ALL sections:
feature,version,description,category,tagsfields— with name, type, required, label, placeholder, validationrules— business logic, security, rate limiting- Use RFC 2119 prefixes:
MUST:for non-negotiable (security, data integrity),SHOULD:for best practice,MAY:for optional enhancements 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 processeserrors— UPPER_SNAKE_CASE codes with user-safe messagesevents— dot.notation names with payloadsactors— only if multiple roles are involvedstates— only if there's a lifecycle/status fieldsla— only if there are time constraintsrelated— connections to existing blueprintsui_hints— layout, field order, accessibilityagi— consider adding an AGI-readiness section for blueprints in these categories:ai— always include (autonomous agents need goals, safety, coordination)workflow— include if the feature involves autonomous execution, approvals, or escalationintegration— include if the feature processes untrusted external input (webhooks, APIs)data— include if the feature involves financial transactions or compliance-sensitive operations- For other categories, only include
agiif the feature has significant autonomous behavior or safety implications - When including
agi, add at minimum:goals(with success_metrics),autonomy(with level and human_checkpoints), andsafety(with action_permissions). Add other sub-sections as relevant.
- Write the file to
blueprints/{category}/{feature}.blueprint.yaml - Validate structure — run
node scripts/validate.js blueprints/{category}/{feature}.blueprint.yaml - Validate completeness — run
node scripts/completeness-check.js blueprints/{category}/{feature}.blueprint.yaml(catches placeholders, empty outcomes, dangling error refs) - Fix any errors silently and re-run both checks. Do NOT consider the skill complete until both pass with zero errors.
- Generate the human-friendly readme — run
node scripts/generate-readmes.js blueprints/{category}/{feature}.blueprint.yaml. This writes a concise co-located.mdfile alongside the YAML. The rendered markdown (NOT the YAML) is what you show the user as a confirmation in Phase 4. Showing this.mdsatisfies the "never show YAML to the user" rule — you're showing the rendered human summary, not the source spec.
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 codePhase 5: Update Related Blueprints
If existing blueprints should reference this new feature:
- Tell the user: "The login blueprint should reference checkout — want me to add that?"
- On confirmation, add the
relatedentry 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 & Data Protection (POPIA)
- Public features have rate limiting
- Sensitive fields marked
sensitive: true - Error messages don't leak internal state
- Auth requirements specified in rules
- NO real API keys, tokens, passwords, or PII in field examples, descriptions, rules, or anywhere
- NO real connection strings, URLs with credentials, or private keys
- Use fake placeholders:
"example@test.com","sk-test-key-not-real","<api-key>" - Field validation patterns described WITHOUT real data samples
Rule Strength (RFC 2119)
- Security-critical rules are prefixed
MUST:(hashing, auth checks, input validation) - Best-practice rules are prefixed
SHOULD:(logging, rate limiting, audit trails) - Optional enhancements are prefixed
MAY:(notifications, analytics, caching) - Rules without a prefix are treated as
SHOULD:by code generators
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
AI-Proofing (MANDATORY — these fields prevent yesterday's fake-endpoint failure)
Every new blueprint MUST include the three AI-proofing fields. Ask the user plain-English questions to populate them — do NOT skip, do NOT leave empty.
aliases:— list 5–10 alternate names users might type for this feature (e.g. login →sign-in,signin,authenticate,log-in). Feeds the intent registry so/fdl-buildresolves natural-language queries to this blueprint deterministically. Ask: "What other words or phrases might someone use for this?"api:— if the feature exposes an HTTP endpoint (any feature with request/response), pin the wire contract:http.method,http.path,request.schema,response.success.schema, andresponse.errors[]mapping each status code to a declared error_code. Ask: "What's the endpoint path? What does the request body look like? What does success return?" If the feature has no HTTP surface (background worker, scheduled job), omitapi:entirely.anti_patterns:— list 5–10 mistakes AI generators (or humans) commonly make for this feature, each as{ rule, why }. Include security pitfalls, common hallucinated alternates, and standard bad defaults. Ask: "What are the usual ways people get this wrong?" Derive from rules + OWASP/NIST guidance when the user doesn't know.
Cross-validation: every error_code listed under api.response.errors[] must also appear in the top-level errors[] block. The validator will fail the blueprint if they drift.
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.
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
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.

