product-architecture-and-development
Skill0 starsChanged 2 months agoMITView on GitHub
Plans and builds web, mobile, desktop, backend, or multi-app products with interview-led architecture, latest-stable tooling, ownership-based structure, and verified implementation. Use when starting, scaffolding, auditing, refactoring, or implementing a product or codebase.
- Installs packages
In this repository6 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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
- Very specific: line 12
Keep a decision ledger: confirmed, inferred, unknown/configurable, prohibited, deferred, each with a revisit signal.
- Distinctive: line 51
Use the ecosystem-standard transport client.
- Distinctive: line 59
Run with Node from the skill directory.
- Distinctive: line 69
No completion claim without fresh command output in the same message: tests (0 failures), lint, typecheck, build (exit 0).
- Distinctive: line 72
Before handoff, run the applicable lint, typecheck, test, build, security, accessibility, and SEO checks.
≈ “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
Product Architecture and Development
Contract
- The user's prompt is the source of truth. Interview (one to three grouped questions) only about unresolved choices that materially change the result; never force interviews, plans, or approval gates the user did not ask for.
- Greenfield: apply the defaults below. Existing project: inspect first, preserve healthy conventions, never silently rename, move, or delete. A requested restructure: compare current vs target, name the risks, then execute.
- Keep a decision ledger:
confirmed,inferred,unknown/configurable,prohibited,deferred, each with a revisit signal. - Named tools are candidates, not mandates. Ask before adding a material dependency. Companion skills are optional: use one if installed, otherwise suggest it; never install silently (
node scripts/check-companions.mjs). When a library the project will use repeatedly ships a free official MCP or agent docs, propose setting it up project-scoped; for shadcn registries one shadcn MCP covers all (ui-sources).
Load only the reference the task needs
| Task | Reference |
| Brief, interview, build plan | project-initiation |
| Folder tree, ownership, dependency direction | architecture-core, module-boundaries |
| File and component naming, linting | naming-and-linting |
| Stack, generator, package choice | stack-selection |
| Web / mobile / desktop / backend | web, mobile, desktop, backend |
| Mobile headers, tab bars, sheets, safe areas | mobile-chrome |
| Tokens, Tailwind, components, icons | styling-and-components |
| UI library or registry choice | design-system-and-ui-libraries |
| Find components, blocks, shaders, textures | ui-sources |
| Motion, Lottie, smooth scroll, 3D, media | design-motion-media |
| Assets and global styles | assets-and-styles |
| API client, cache, state | api-data-state |
| Forms and validation | forms-and-validation |
| AI features | ai-systems |
| Analytics / third-party scripts | analytics, third-party-scripts |
| Localization / SEO | localization, seo |
| Security headers and CSP | security-and-csp |
| Config, auth, persistence, jobs, CI, launch | production-foundations |
| Product, UX, or behavior decisions | evidence-led-product-design |
| Multi-task migration | migration-workflow |
| Optional code graph | graphify |
| Validation before handoff | quality-gates |
Defaults
- TypeScript-first; ecosystem-standard naming and tooling; one formatter and one lint config per language.
- Routes and screens stay thin. Features own their UI, actions, API, hooks, schemas, services, types, helpers, data, and tests. Shared code is domain-neutral with two real consumers. A root directory needs a second consumer or a cross-cutting policy.
- React: PascalCase component files without
.component; standalone components are single files; neverfeatures/<feature>/index.ts. Details in naming-and-linting. - Library-owned primitives stay in library directories (
components/shadcn/); extend through project wrappers. cnlives only atsrc/utils/cn.ts(@/utils/cn). shadcn defaults to@/lib/utils: aftershadcn init, setcomponents.jsonaliases.utilsto@/utils/cnandaliases.uito@/components/shadcn, move the helper, deletelib/utils.ts, and re-check after everyshadcn add.- Projects with UI get a root
DESIGN.md(open DESIGN.md format) before feature UI: the design source of truth that agents read before any UI work. Theme files insrc/styles/implement it; change both together. Details: styling-and-components. Skip it for projects without UI. - Tokens and code-based style config live in
src/styles/; framework/build config stays at the repo root. - Use the ecosystem-standard transport client; Axios only for REST needs, existing use, or preference; never wrap a typed RPC or generated client.
- Validate untrusted input at the server or trusted boundary.
- Package manager: keep the existing one; new JS/TS projects use pnpm (Bun only when verified or already used).
- Latest stable only. Install every new dependency, generator, and CLI at its latest stable release, resolved from the registry at install time (
pnpm add <pkg>@latest,pnpm dlx <cli>@latest,npm view <pkg> dist-tags.latest), never from memory. Skip alpha/beta/rc/canary/nightly/preview unless the user asks. If latest breaks a peer, use the newest compatible stable and record why. Existing projects: list outdated packages and upgrade when requested or in scope; keep major upgrades out of unrelated changes; never downgrade. - Greenfield with no stack given: Better-T-Stack via
pnpm create better-t-stack@latestfor supported combinations; otherwise the ecosystem's official generator at its latest stable tag. Re-check generated versions against the registry right away.
Scripts
Run with Node from the skill directory; read-only unless noted.
scripts/inspect-project.mjs <project>: stack, versions, lockfiles, conventions,cnlocation. Run first on existing projects.scripts/audit-global-styles.mjs <src>: global CSS classes by consumer count; repeated arbitrary Tailwind values.scripts/scaffold-module.mjs <feature|component> <kebab-name> [--root <src>] [--apply]: dry run unless--apply.scripts/create-migration-plan.mjs <project>: writes.architecture/plan, state, and task files.scripts/check-companions.mjs: lists installed optional companion skills.
Verification
- No completion claim without fresh command output in the same message: tests (0 failures), lint, typecheck, build (exit 0). "Should pass" is not evidence; a subagent's report is not a diff.
- Non-trivial behavior: write the failing test first and watch it fail for the right reason. A test that passes on its first run is suspect.
- Review feedback: restate it, verify it against the code, then implement or push back with reasons; no performative agreement.
- Before handoff, run the applicable lint, typecheck, test, build, security, accessibility, and SEO checks; classify exceptions as fixed, accepted with a reason, or deferred with an owner.
Companion routing
ai-assisted-product-development: AI design exploration, feedback-to-change loops.conversion-storytelling: landing pages, pricing, onboarding narrative, proof, CTA.content-marketing-and-brand-growth: launch campaigns, social, video or thumbnail briefs.global-discovery-browsing-extraction: current web evidence and asset discovery, including signed-in pages.- UI critique:
impeccable, thenui-ux-pro-max; Expo: official Expo skills; Lottie authoring:text-to-lottie; video:hyperframes; missing capability:find-skills.
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.

