agentleFS
hridoy43hridoy43/agent-skills/skills/product-architecture-and-development/SKILL.md

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

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

    Keep a decision ledger: confirmed, inferred, unknown/configurable, prohibited, deferred, each with a revisit signal.

    line 12
  2. Distinctive:

    Use the ecosystem-standard transport client.

    line 51
  3. Distinctive:

    Run with Node from the skill directory.

    line 59
  4. Distinctive:

    No completion claim without fresh command output in the same message: tests (0 failures), lint, typecheck, build (exit 0).

    line 69
  5. Distinctive:

    Before handoff, run the applicable lint, typecheck, test, build, security, accessibility, and SEO checks.

    line 72

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Product Architecture and Development

Contract

  1. 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.
  2. 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.
  3. Keep a decision ledger: confirmed, inferred, unknown/configurable, prohibited, deferred, each with a revisit signal.
  4. 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

TaskReference
Brief, interview, build planproject-initiation
Folder tree, ownership, dependency directionarchitecture-core, module-boundaries
File and component naming, lintingnaming-and-linting
Stack, generator, package choicestack-selection
Web / mobile / desktop / backendweb, mobile, desktop, backend
Mobile headers, tab bars, sheets, safe areasmobile-chrome
Tokens, Tailwind, components, iconsstyling-and-components
UI library or registry choicedesign-system-and-ui-libraries
Find components, blocks, shaders, texturesui-sources
Motion, Lottie, smooth scroll, 3D, mediadesign-motion-media
Assets and global stylesassets-and-styles
API client, cache, stateapi-data-state
Forms and validationforms-and-validation
AI featuresai-systems
Analytics / third-party scriptsanalytics, third-party-scripts
Localization / SEOlocalization, seo
Security headers and CSPsecurity-and-csp
Config, auth, persistence, jobs, CI, launchproduction-foundations
Product, UX, or behavior decisionsevidence-led-product-design
Multi-task migrationmigration-workflow
Optional code graphgraphify
Validation before handoffquality-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; never features/<feature>/index.ts. Details in naming-and-linting.
  • Library-owned primitives stay in library directories (components/shadcn/); extend through project wrappers.
  • cn lives only at src/utils/cn.ts (@/utils/cn). shadcn defaults to @/lib/utils: after shadcn init, set components.json aliases.utils to @/utils/cn and aliases.ui to @/components/shadcn, move the helper, delete lib/utils.ts, and re-check after every shadcn 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 in src/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@latest for 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, cn location. 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, then ui-ux-pro-max; Expo: official Expo skills; Lottie authoring: text-to-lottie; video: hyperframes; missing capability: find-skills.

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.