mcpField
P
project-architecture

project-architecture

github.com/c3sc0-v4113Development33.4k installsUpdated today
Repository

About project-architecture

project-architecture is a skill for guiding structural and UI changes in Next.js and Astro apps. It sets framework-specific guardrails for server/client boundaries, design conventions, data states, testing, and completion reporting.

Key features

  1. 01Framework detection before changes
  2. 02Server-first rendering guidance
  3. 03Framework documentation checks
  4. 04Design and component conventions
  5. 05Explicit data display states
  6. 06Risk-based tests and checklist

Use cases

  1. 01Planning a UI or layout change
  2. 02Changing state flow or data display
  3. 03Adjusting server/client boundaries
  4. 04Reviewing implementation before completion

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/c3sc0-v4113/scaffold --skill project-architecture

After installing, type/project-architecturein Claude Code to confirm it loaded.

Bundled filesreferences/astro.mdreferences/next.md

Details

From the project README

Project Architecture Guardrails

Activation Contract

Load this skill before changing UI, layout, component structure, state flow, theming, data display, or the server/client boundary of a Next.js or Astro app.

Hard Rules

  1. Detect the framework from the project before acting; never assume it.
  2. Keep rendering server-first. Add client-side code only when the interaction cannot work without it, and keep that surface as small as possible.
  3. Read the installed framework's own docs before changing framework APIs or project structure.
  4. Follow DESIGN.md for visual and UX decisions when it exists.
  5. Build from existing shadcn primitives and semantic tokens before writing custom markup or styles; load shadcn-component-boundaries when it is installed.
  6. Make loading, empty, and error states explicit for every data display.
  7. Add tests proportional to risk, using the test tooling the project already has.

Decision Gates

Project signalFrameworkGuidance
next in package.json dependencies, or a next.config.* fileNext.jsreferences/next.md
astro in package.json dependencies, or an astro.config.* fileAstroreferences/astro.md
Both or neitherUnknownStop and ask which app the change targets

Execution Steps

  1. Read package.json and list the root config files to detect the framework.
  2. Load the matching reference and apply its boundary rules.
  3. Search existing components, routes, and styles before creating new ones.
  4. Implement the change with the smallest client-side surface that works.
  5. Answer the pre-close checklist, then load project-min-evaluation when it is installed, or run the project's quality scripts.

Pre-close checklist:

  • Did the change add unnecessary client-side surface?
  • Does it follow DESIGN.md?
  • Are loading, empty, and error states explicit?

Output Contract

Report the detected framework, every server/client boundary added or moved (with its reason), and the checklist answers.

References

Comments

Markdown supported