Agent skill
agent-guidelines
When you need to understand the project's core mandate, operational rules, or "Constitution". Use this skill to align with the project's identity and strict coding standards.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/agent-guidelines
SKILL.md
Agent Guidelines & Operational Rules
1. The "Constitution" & Project Identity
Project Name: NextBlock CMS Mandate: Build a premium, Open-Core Next.js CMS. Core Stack: Next.js (App Router), Supabase, Tailwind CSS, Tiptap v3.
Critical Rules
- Strict Separation:
libs/uiandlibs/dbmust be publishable as standalone packages. They cannot depend onapps/nextblock. - Open-Core Model: The core is open-source; premium extensions are private.
- Distribution: Users get a standalone app via
npm create nextblock.
2. Operational Rules (Global Context)
- Context First: Before answering complex questions, always check
docs/README.mdand relevant linked docs. - Strict Types: Always use
strict: trueTypeScript. Noanyunless absolutely unavoidable and documented. - Target the App, Not the Template: NEVER edit files in
apps/create-nextblock/templates/nextblock-templatedirectly. Always make changes inapps/nextblock(the core app). The template is synced from the core app via scripts.
3. Maintenance Rule: 'Ghost Module Synchronization'
[!IMPORTANT] CRITICAL: Whenever you modify the exports of
libs/ecommerce(the private library), you MUST immediately updatetools/stubs/libs/ecommerce/index.tsto export the same names (as stubs).Why? Failure to do this will break the public open-source build which relies on these stubs when the private library is not present.
4. Documentation Access
- Use the
context7MCP tool to fetch the latest documentation for Next.js, Supabase, Nx, Tailwind, etc. - Do not guess about API updates; verify with
context7if unsure.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?