agentleFS
TheunsBarnardtTheunsBarnardt/claude-fdl/llms.txt

claude-fdl

llms.txt0 starsChanged 8 months agoMITView on GitHub

Define what your software should do as YAML blueprints. Let any AI generate the complete implementation for any framework. FDL is a framework-agnostic specification system for defining software features. Instead of asking AI to "build login" and getting inconsistent results, you write (or extract) a blueprint that specifies every field, rule, outcome, error, and event — then any AI tool generates a correct, complete implementation for your chosen language and framework. Blueprints are not templates. They are captured architectural expertise.…

The file

We split this llms.txt into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every blueprint is available as JSON (no scraping needed):

    line 22
  2. Very specific:

    All of them. Blueprints are framework-agnostic.

    line 166

≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt 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
llms.txt
# Feature Definition Language (FDL)

> Define what your software should do as YAML blueprints. Let any AI generate the complete implementation for any framework.

## What is FDL?

FDL is a framework-agnostic specification system for defining software features. Instead of asking AI to "build login" and getting inconsistent results, you write (or extract) a blueprint that specifies every field, rule, outcome, error, and event — then any AI tool generates a correct, complete implementation for your chosen language and framework.

Blueprints are not templates. They are captured architectural expertise. A login blueprint teaches AI how to build rate limiting, token lifecycle management, and enumeration prevention for anything. A payment blueprint teaches asynchronous request-callback flows, idempotency, and state machines that apply to any distributed system.

## Repository

- URL: https://github.com/TheunsBarnardt/claude-fdl
- Documentation: https://theunsbarnardt.github.io/claude-fdl/
- JSON API: https://theunsbarnardt.github.io/claude-fdl/api/registry.json
- License: MIT
- Language: YAML blueprints + Node.js tooling
- AI Integration: Claude Code skills (7 slash commands), works with any AI tool

## Static API for AI Tools

Every blueprint is available as JSON (no scraping needed):
- Registry: https://theunsbarnardt.github.io/claude-fdl/api/registry.json
- Per-blueprint: https://theunsbarnardt.github.io/claude-fdl/api/blueprints/{category}/{feature}.json
- Example: https://theunsbarnardt.github.io/claude-fdl/api/blueprints/auth/login.json

## Seven Commands

- `/fdl-build` — Build a full app from a plain-English description. Searches existing blueprints, suggests related features via interactive checklist, disambiguates overlapping options, resolves gaps (delegates to create/extract skills), and orchestrates multi-blueprint code generation with cross-feature integration. The flagship command.
- `/fdl-create` — Create a blueprint from a plain-language conversation
- `/fdl-extract` — Extract rules from a document (PDF, DOCX, images) into a blueprint
- `/fdl-extract-web` — Crawl a documentation website and extract API operations into blueprints
- `/fdl-extract-code` — Analyze an existing codebase (local folder or git repo) and reverse-engineer features into blueprints
- `/fdl-extract-code-feature` — Scan a large repo, select specific features, extract only those as portable blueprints
- `/fdl-generate` — Generate implementation code from a blueprint for any language or framework

## 180 Included Blueprints

### Auth Pack (13) — Security Patterns
- `login` — Email/password authentication. Patterns: scoped rate limiting, JWT token lifecycle, account lockout, enumeration prevention, constant-time comparison.
- `signup` — User registration. Patterns: layered validation, bot detection, async email side effects.
- `password-reset` — Two-step recovery via email token. Patterns: token hashing, session invalidation on credential change.
- `logout` — Session termination. Patterns: scoped token revocation, CSRF protection.
- `email-verification` — Confirm email ownership. Patterns: token-based claim verification, rate-limited resends.
- `biometric-auth` — Palm vein as login alternative. Patterns: multi-enrollment, graceful hardware fallback.
- `payload-auth` — CMS authentication integration. Patterns: cookie-based sessions, CSRF tokens, API key auth.
- `multi-factor-auth` — TOTP, SMS OTP, backup codes. Patterns: QR code setup, code expiry, recovery flow.
- `oauth-social-login` — OAuth2/OIDC social sign-in (Google, GitHub, Apple, Microsoft). Patterns: PKCE, account linking.
- `single-sign-on` — Enterprise SSO (SAML 2.0, OIDC). Patterns: SP/IdP-initiated flows, JIT provisioning.
- `session-management` — Active session listing, device tracking, revocation. Patterns: concurrent limits, force-logout.
- `api-key-management` — Create, rotate, revoke, scope API keys. Patterns: key hashing, prefix identification.
- `magic-link-auth` — Passwordless email login. Patterns: single-use tokens, IP binding, expiry.

### Access Pack (6) — Authorization & Compliance
- `payload-access-control` — CMS field and collection level access control.
- `role-based-access` — Generic RBAC with role hierarchy and permission inheritance.
- `team-organization` — Multi-tenancy with orgs, teams, member invites, data isolation.
- `audit-logging` — Immutable append-only audit trail with hash chain tamper detection.
- `rate-limiting` — Per-user/IP/API-key throttling (fixed window, sliding window, token bucket).
- `data-privacy-compliance` — GDPR/CCPA: consent management, right to erasure, data portability.

### Data Pack (29) — Storage, Search & Content
- `search-and-filtering` — Full-text search, faceted filters, relevance scoring, saved searches.
- `pagination` — Cursor-based and offset-based pagination with Link headers.
- `data-import-export` — Bulk CSV/Excel/JSON import and export with row-level validation.
- `caching` — Cache strategies (read-through, write-through, cache-aside), stampede protection.
- `soft-delete` — Trash/archive/restore with auto-purge and cascade rules.
- `tagging-categorization` — Tags, labels, hierarchical categories with slug generation.
- `comments-annotations` — Threaded comments on any entity, mentions, reactions, edit windows.
- `file-storage` — Cloud storage abstraction (S3/GCS/Azure), signed URLs, virus scanning.
- `audit-trail` — Field-level change tracking (before/after diffs) for any record.
- `prisma-schema` — ORM schema definition patterns. `prisma-crud` — CRUD operations. `prisma-migrations` — Migration patterns.
- `payload-collections` — CMS collections. `payload-globals` — Global config. `payload-preferences` — User preferences. `payload-uploads` — File uploads. `payload-versions` — Content versioning. `payload-document-locking` — Concurrent edit prevention.
- `content-tree` — Hierarchical content structure. `editor-state` — Editor state management. `field-transforms` — Data transformation pipelines. `undo-redo` — Undo/redo stack.
- `bank-reconciliation` — Bank statement matching. `expense-approval` — Multi-step approval workflow. `portfolio-management` — Investment portfolio management. `product-configurator` — Product variant configuration. `proposals-quotations` — Proposal generation. `tax-engine` — Tax calculation engine. `document-management` — Document lifecycle management.

### Integration Pack (19) — External Services & APIs
- `email-service` — SMTP/transactional email provider abstraction with template rendering.
- `payment-gateway` — Payment provider abstraction (charge, authorize/capture, void, refund).
- `cloud-storage` — S3/GCS/Azure Blob storage abstraction with lifecycle policies.
- `message-queue` — Async job processing abstraction (Kafka/RabbitMQ/SQS patterns).
- `api-gateway` — API routing, authentication, versioning, circuit breaker.
- `webhook-ingestion` — Receive, verify (HMAC), and process incoming webhooks.
- `oauth-provider` — Be an OAuth2 provider (issue tokens to 3rd-party apps).
- `palm-vein` — Hardware SDK integration. `build-integration` — CI/CD build pipeline. `plugin-development` — Plugin system. `plugin-overrides` — Plugin extension points. `prisma-cli` — ORM CLI tooling.
- `chp-inbound-payments` — Clearing house inbound. `chp-outbound-payments` — Clearing house outbound. `chp-request-to-pay` — Request-to-pay. `chp-eft` — Batch EFT. `chp-account-management` — Account/proxy management. `blockradar-api` — Blockchain wallet management. `market-data-feeds` — Real-time market data.

### Notification Pack (6) — Messaging & Alerts
- `email-notifications` — Transactional email with templates, bounce handling, tracking.
- `sms-notifications` — SMS with OTP support, TCPA/GDPR compliance, delivery receipts.
- `push-notifications` — Mobile/web push with FCM/APNs, topics, rich media, badge counts.
- `in-app-notifications` — Notification center with real-time delivery, grouping, deep links.
- `notification-preferences` — Per-user per-channel opt-in/out, quiet hours, digest mode.
- `webhook-outbound` — Outbound webhooks with HMAC signing, retry, endpoint health monitoring.

### Payment Pack (9) — Commerce & Billing
- `subscription-billing` — Plans, trials, upgrades/downgrades, proration, dunning.
- `cart-checkout` — Shopping cart, stock reservation, checkout flow, promo codes.
- `refunds-returns` — Full/partial refunds, return merchandise, restocking.
- `payment-methods` — Card tokenization, saved methods, wallets (Apple Pay, Google Pay).
- `shipping-calculation` — Zone-based rates, carrier integration, dimensional weight.
- `currency-conversion` — Multi-currency with exchange rates, locale formatting, rounding.
- `invoicing-payments` — Invoice generation and payment tracking. `loyalty-coupons` — Loyalty programs and coupon codes. `pos-core` — Point of sale core operations.

### UI Pack (21) — Components & Patterns
- `form-builder` — Dynamic form creation with conditional visibility and validation rules.
- `data-table` — Sortable, filterable, paginated tables with inline editing and bulk actions.
- `dashboard-analytics` — Widget grid, KPIs, charts, configurable date ranges, auto-refresh.
- `charts-visualization` — Bar, line, pie, scatter, time-series with responsive sizing.
- `wizard-stepper` — Multi-step forms with progress, validation gates, save/resume.
- `navigation-menu` — Sidebar, breadcrumbs, mega menu with permission-based visibility.
- `toast-notifications` — Snackbar/toast feedback with stacking, auto-dismiss, aria-live.
- `internationalization` — i18n with locale switching, pluralization, RTL, lazy-loaded bundles.
- `accessibility` — WCAG 2.1 AA patterns: keyboard nav, focus management, ARIA, contrast.
- `dark-mode` — Theme toggle with system preference detection, CSS custom properties.
- `shadcn-cli` — Component registry CLI. `shadcn-components` — 56 accessible React components. `component-registry` — Component discovery. `drag-drop-editor` — Visual editor. `ecommerce-store` — Storefront UI. `responsive-layout` — Layout system. `responsive-viewport` — Viewport management. `self-order-kiosk` — Kiosk UI. `theme-configuration` — Theme system. `utility-composition` — Utility CSS patterns. `arbitrary-values` — Dynamic CSS values.

### Workflow Pack (13) — Business Processes
- `task-management` — Create, assign, track tasks with kanban, dependencies, overdue detection.
- `scheduling-calendar` — Events, bookings, availability, recurrence (RRULE), timezone handling.
- `approval-chain` — Generic multi-level approval with sequential/parallel approvers, delegation.
- `report-generation` — Scheduled/on-demand PDF/Excel/CSV reports with caching.
- `bulk-operations` — Batch update/delete/export with progress tracking and error logs.
- `state-machine` — Generic configurable state machine engine with guards and history.
- `expense-approval` — Multi-step expense approval. `automation-rules` — Event-driven automation engine. `client-onboarding` — Client registration workflow. `advisor-onboarding` — Advisor approval workflow. `quotation-order-management` — Quote-to-order flow. `purchase-agreements` — Purchase agreement lifecycle. `payload-job-queue` — Background job processing.

## Transferable Patterns Across Blueprints

These patterns appear across multiple blueprints and transfer to any domain:

- **Rate limiting** — login, signup, password-reset, payments. Apply to any brute-forceable endpoint or resource.
- **State machines** — auth flows, payment lifecycles, expense approval, sidebar UI. Apply to any entity with a lifecycle.
- **Token-based verification** — login, password-reset, email-verification. Apply to any claim verification (phone, domain, device pairing).
- **Idempotency** — all payment blueprints. Apply to any distributed system where duplicates can arrive.
- **Async callback patterns** — all CHP payment blueprints. Apply to any webhook-based integration.
- **Registry/plugin architecture** — shadcn-cli. Apply to building your own package registry, CDN, plugin marketplace.
- **MCP server integration** — shadcn-cli. Apply to making any catalog AI-discoverable.

## Combining Blueprints

Blueprints compose. Examples of what you can build by combining:

- Plugin marketplace with approval: shadcn-cli (registry) + expense-approval (state machine) + login (rate limiting)
- Payment gateway: chp-outbound-payments (orchestration) + login (API key auth) + chp-account-management (verification)
- SaaS onboarding wizard: signup (account creation) + email-verification (confirm ownership) + expense-approval (step workflow pattern)
- IoT device management: palm-vein (hardware state machine) + shadcn-cli (registry for device drivers) + chp-account-management (proxy resolution)
- Wealth management platform: portfolio-management (data) + market-data-feeds (integration) + document-management (storage) + login (authentication) + expense-approval (rebalancing workflows)
- Complete wealth onboarding system: client-onboarding (workflow) + advisor-onboarding (workflow) + proposals-quotations (data) + login (authentication) + email-notification (event notifications)

## Key Files

- Schema: schema/blueprint.schema.yaml
- Validator: scripts/validate.js
- Blueprints: blueprints/{category}/{feature}.blueprint.yaml
- Skills: .claude/skills/{skill-name}/SKILL.md

## Blueprint Structure

Required: feature, version, description, category, rules, and at least one of outcomes or flows.
Optional: fields, tags, related, events, errors, actors, states, sla, ui_hints, extensions.

Outcomes use given/then/result format with structured conditions (field, source, operator, value) and structured side effects (set_field, emit_event, transition_state, notify, call_service, create_record, delete_record).

## Supported Frameworks

All of them. Blueprints are framework-agnostic. Tested with: Next.js, Express, Laravel, Angular, React, Vue, C#/.NET, Rust, Python/Django, Go, Ruby on Rails, Flutter, Swift.

## Why Blueprints Matter for Next-Gen AI Models

As AI models become more agentic and autonomous (planning multi-step actions, executing across systems without human input at each stage), structured specifications become critical infrastructure. Blueprints give autonomous agents a complete contract — every field, rule, outcome, and error — so they implement exactly what's defined instead of guessing requirements. The better the model, the more it benefits from precise specifications. Blueprints are the interface between human intent and AI execution.

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.