generate-internal-app
Skill2 starsChanged 6 months agoMITView on GitHub
Adapt the internal Next.js business app template from an app blueprint.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- improveSkill
- teamSkill
- ccf-architecture-contractSkill
- ccf-build-and-envSkill
- ccf-change-controlSkill
- ccf-debugging-playbookSkill
- ccf-doc-sync-campaignSkill
- ccf-dogfood-and-driftSkill
- ccf-domain-referenceSkill
- ccf-failure-archaeologySkill
- ccf-onboarding-tourSkill
- ccf-parity-playbookSkill
- ccf-release-and-installSkill
- ccf-testing-and-qaSkill
- improveSkill
- teamSkill
- add-referenceSkill
- ai-updateSkill
- app-blueprintSkill
- buildSkill
- check-readinessSkill
- deploySkill
- developSkill
- draft-storySkill
- error-analyzeSkill
- factorySkill
- fetch-docsSkill
- impactSkill
- improveSkill
- indexSkill
- iterative-reviewSkill
- merge-resolveSkill
- mock-endpointSkill
- planSkill
- promoteSkill
- refine-storySkill
- scaffold-design-systemSkill
- searchSkill
- setupSkill
- teamSkill
- skill-nameSkill
- update-trackerSkill
- validateSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 9 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
If no blueprint path is provided, look for docs/app-blueprint.json.
- Very specific: line 30
If these are missing, stop and tell the user to re-run setup with the "Internal Next.js Business App" preset.
- Very specific: line 35
Ensure appName, usersAndRoles, entities, workflows, permissions, filesBlobNeeds, auditEvents, dashboardsViews, and aiAssistPoints exist.
- Distinctive: line 41
Add enums for entity statuses and role/action concepts where useful.
- Distinctive: line 42
Add models for blueprint entities.
- Very specific: line 43
Keep User, FileObject, and AuditLog unless the blueprint explicitly replaces them.
- Distinctive: line 44
Prefer relational foreign keys over denormalized JSON for workflow state.
- Distinctive: line 46
Keep Prisma calls inside repositories.
- Very specific: line 48
Add create/update/status-transition helpers matching workflows.
- Very specific: line 50
Use auth helpers from src/lib/auth.
- Distinctive: line 52
Create audit events for every workflow transition.
- Very specific: line 53
Keep blob operations behind src/lib/blob/client.ts.
- Very specific: line 55
Add queue/table/detail/form views from dashboardsViews.
- Distinctive: line 56
Keep operational density appropriate for internal tools.
- Very specific: line 58
Update seed data in prisma/seed.ts.
- Distinctive: line 60
Never use real PII.
- Distinctive: line 61
Add tests where the app has a test harness.
- Very specific: line 62
If no harness exists, add a short docs/stories/<feature>/how-to-test.md with manual and typecheck validation.
- Distinctive: line 78
Add docs/stories and validation notes.
≈ “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.
Files
Generate Internal App
Consume an app blueprint and modify the internal Next.js business app template into a working business application. This skill owns orchestration and code generation steps; keep the app's core architecture inside the app template.
Usage
/generate-internal-app docs/app-blueprint.json
/generate-internal-app docs/app-blueprint.json --feature invoice-approvalIf no blueprint path is provided, look for docs/app-blueprint.json. If it is missing, run /app-blueprint first.
Preconditions
The target repo should contain the internal app preset:
package.jsonprisma/schema.prismasrc/app/apisrc/lib/db/prisma.tssrc/lib/blob/client.tssrc/lib/auth
If these are missing, stop and tell the user to re-run setup with the "Internal Next.js Business App" preset.
Process
- Validate the blueprint JSON.
- Ensure
appName,usersAndRoles,entities,workflows,permissions,filesBlobNeeds,auditEvents,dashboardsViews, andaiAssistPointsexist. - Report open questions that block safe generation.
- Ensure
- Plan the generation slice.
- Full app: generate all core entities and views.
- Feature mode: generate only the requested workflow/entity slice and do not churn unrelated files.
- Update Prisma.
- Add enums for entity statuses and role/action concepts where useful.
- Add models for blueprint entities.
- Keep
User,FileObject, andAuditLogunless the blueprint explicitly replaces them. - Prefer relational foreign keys over denormalized JSON for workflow state.
- Generate repository modules under
src/lib/<entity>/repository.ts.- Keep Prisma calls inside repositories.
- Return plain domain objects to routes/pages.
- Add create/update/status-transition helpers matching workflows.
- Generate API routes under
src/app/api/<entity>/route.tsand focused subroutes when needed.- Use auth helpers from
src/lib/auth. - Validate input with Zod.
- Create audit events for every workflow transition.
- Keep blob operations behind
src/lib/blob/client.ts.
- Use auth helpers from
- Generate dashboard UI.
- Add queue/table/detail/form views from
dashboardsViews. - Keep operational density appropriate for internal tools.
- Include file upload controls only where
filesBlobNeedsrequires them.
- Add queue/table/detail/form views from
- Update seed data in
prisma/seed.ts.- Seed users/roles and a small synthetic sample for each generated workflow.
- Never use real PII.
- Add tests where the app has a test harness.
- If no harness exists, add a short
docs/stories/<feature>/how-to-test.mdwith manual and typecheck validation.
- If no harness exists, add a short
- Update docs.
README.md: app-specific quick start and core workflows.docs/setup.md: provider notes only when generation changes env needs.docs/stories/<feature>/: generated story, solution components, how-to-test, manual steps.
- Run validation.
npm run typechecknpm run lintnpm run buildwhen dependencies and env are available.
Ownership Boundaries
The framework may:
- Read the blueprint.
- Modify app code in the target repo.
- Add docs/stories and validation notes.
- Preserve one app stack while preparing environment guidance for hosting providers.
The framework must not:
- Fork the app into separate Vercel/Azure/local codebases.
- Bypass Prisma with ad hoc database calls in routes/pages.
- Hardcode provider-specific blob logic outside
src/lib/blob/client.ts. - Generate AI actions that silently change workflow state without a human action.
Output
End with:
- Files changed, grouped by Prisma, repositories, API, UI, tests, docs.
- Validation commands run and their result.
- Any generation gaps that need app-creator template support.
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.

