agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/app-blueprint/SKILL.md

app-blueprint

Skill2 starsChanged 6 months agoMITView on GitHub

Convert internal business app intent into a structured JSON blueprint for the app generator.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    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. Very specific:

    If the user gives only a rough idea, produce the best blueprint you can and mark uncertain fields in openQuestions.

    line 17
  2. Distinctive:

    Read the prompt and any referenced files.

    line 21
  3. Distinctive:

    Keep the first pass small enough to generate:

    line 27
  4. Distinctive:

    Prefer explicit statuses over vague text fields.

    line 29
  5. Distinctive:

    Prefer role names that map to permissions.

    line 30
  6. Very specific:

    Write the result to docs/app-blueprint.json unless the user requested a different path.

    line 31
  7. Distinctive:

    Write valid JSON with this shape:

    line 36
  8. Very specific:

    Do not invent external integrations beyond what the user provided.

    line 136
  9. Distinctive:

    Keep file/blob needs separate from relational entity fields.

    line 138
  10. Distinctive:

    Keep AI assist points advisory.

    line 139

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

App Blueprint

Turn business intent into a concrete internal-app blueprint. Use this before generating or materially changing an internal Next.js business app.

Usage

/app-blueprint Build an approval app for supplier invoices
/app-blueprint docs/notes/invoice-workflow.md

If the user gives only a rough idea, produce the best blueprint you can and mark uncertain fields in openQuestions. Ask only for blockers that would make generation unsafe.

Process

  1. Read the prompt and any referenced files.
  2. Identify the core business workflow, users, records, file needs, audit trail, dashboards, and AI assist points.
  3. Normalize names to stable identifiers:
    • PascalCase for entity names.
    • camelCase for field names.
    • lower-kebab-case for workflow and view IDs.
  4. Keep the first pass small enough to generate:
    • Prefer 2-5 core entities.
    • Prefer explicit statuses over vague text fields.
    • Prefer role names that map to permissions.
  5. Write the result to docs/app-blueprint.json unless the user requested a different path.
  6. Report the blueprint path and any open questions.

Output Contract

Write valid JSON with this shape:

{
  "appName": "Supplier Invoice Desk",
  "summary": "Short operational description.",
  "usersAndRoles": [
    {
      "role": "financeManager",
      "displayName": "Finance Manager",
      "responsibilities": ["Approve invoices"],
      "authSource": "oidc"
    }
  ],
  "entities": [
    {
      "name": "Invoice",
      "description": "Supplier invoice awaiting review.",
      "fields": [
        {
          "name": "supplierName",
          "type": "string",
          "required": true,
          "unique": false,
          "sensitive": false,
          "notes": "Shown in lists and detail views."
        }
      ],
      "statuses": ["draft", "submitted", "approved", "rejected"],
      "relationships": [
        {
          "name": "attachments",
          "target": "FileObject",
          "cardinality": "many"
        }
      ]
    }
  ],
  "workflows": [
    {
      "id": "submit-invoice",
      "name": "Submit Invoice",
      "actorRoles": ["requester"],
      "entity": "Invoice",
      "fromStatuses": ["draft"],
      "toStatus": "submitted",
      "steps": ["Validate required fields", "Create audit event"]
    }
  ],
  "permissions": [
    {
      "role": "financeManager",
      "entity": "Invoice",
      "actions": ["read", "approve", "reject"]
    }
  ],
  "filesBlobNeeds": [
    {
      "entity": "Invoice",
      "purpose": "Store original invoice PDF",
      "allowedMimeTypes": ["application/pdf"],
      "maxSizeMb": 10,
      "retention": "Match finance record retention policy"
    }
  ],
  "auditEvents": [
    {
      "event": "invoice.approved",
      "actor": "financeManager",
      "entity": "Invoice",
      "payloadFields": ["invoiceId", "approvedAmount"]
    }
  ],
  "dashboardsViews": [
    {
      "id": "finance-queue",
      "name": "Finance Queue",
      "role": "financeManager",
      "type": "table",
      "entities": ["Invoice"],
      "filters": ["status", "supplierName"],
      "primaryActions": ["approve", "reject"]
    }
  ],
  "aiAssistPoints": [
    {
      "id": "invoice-review-assist",
      "name": "Invoice Review Assist",
      "trigger": "detail-view",
      "inputs": ["supplierName", "amount", "description"],
      "output": "Risk notes and recommended review checklist",
      "humanDecisionRequired": true
    }
  ],
  "openQuestions": []
}

Guardrails

  • Do not invent external integrations beyond what the user provided; put candidates in openQuestions.
  • Mark fields that may contain PII or confidential data with sensitive: true.
  • Keep file/blob needs separate from relational entity fields.
  • Keep AI assist points advisory. Human workflow state changes must remain explicit actions.

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.