Loading...
Loading...
(NS) Generate or refresh lean architecture-rules.md for AI agents — stack, layout, patterns, constraints. Use when the user asks for architecture rules, .nextstage-harness/rules/architecture-rules.md, agent conventions, or "document how this repo works for the AI". Do NOT use for business specs (ns-harness-codebase-reverse-spec), brownfield maps (ns-harness-bootstrap-brownfield), or one-off Cursor rules without a full architecture pass.
npx skill4agent add nextstage-brasil/skills ns-harness-architecture-rules{harness_root}/rules/architecture-rules.mdns-harness-codebase-reverse-specns-harness-bootstrap-brownfielddocs/inferredbackend-rules.mdfrontend-rules.md../ns-harness/references/agent-artifact-compress.mdreferences/compression-guide.md../ns-harness/references/harness-discovery.md../ns-harness/references/rules-sync.md| Output path | When |
|---|---|
| Default — canonical constitution |
| Monorepo product folder is the harness anchor |
AGENTS.md{harness_root}/rules/*.md.cursor/rules/*.mdc{harness_root}| Trigger | Action |
|---|---|
| New repo / first agent setup | Generate initial constitution |
| Major stack or layout change | Refresh in place |
| Generate and cross-reference siblings |
| User says rules are stale or agents keep making same mistake | Refresh targeted sections |
{harness_root}{product_root}AGENTS.mdarchitecture-rules.md{harness_root}/rules/*.md{product_root}references/reconnaissance-checklist.mdreferences/stack-signals.mdpackage.jsoncomposer.jsonpyproject.tomlgo.modCargo.tomldocker-compose.yml{product_root}index.phpmain.tsdocs/README.md| Category | What to capture |
|---|---|
| Scope | Product root, monorepo vs standalone, where specs and agent assets live |
| Stack | Languages, frameworks, DB, cache, queue, local URLs/ports when discoverable |
| Layout | Folder tree (abbreviated), module boundaries |
| Patterns | API style, multitenancy, auth, module conventions, integration boundaries |
| Forbidden | Generated dirs, migration constraints, secrets locations |
| Dev & test | Docker services, test container name, copy-pasteable test commands (behavioral rules stay in |
| Discipline | Language for code/docs vs user chat, minimal diff, completion style — only if present in repo rules or |
npx @nextstage-brasil/harness add-rule <name> --description "…"alwaysApply: false.cursor/rules/*.mdccursor.descriptionmanifest.json../ns-harness/references/rules-sync.mdreferences/architecture-rules.template.md.nextstage-harness/manifest.jsonAGENTS.md../ns-harness/references/agent-artifact-compress.mdreferences/compression-guide.md{harness_root}/rules/architecture-rules.md{product_root}/.nextstage-harness/rules/...architecture-rules.nextstage-harness/manifest.jsoncursor.alwaysApply: trueclaude.paths: nullnpx @nextstage-brasil/harness syncarchitecture-rules.md## Changelogagent-artifact-compress.mdmanifest.jsonarchitecture-rulesalwaysApply: truedocs/specs/harness syncns-harness-bootstrap-brownfieldbrownfield-map.mdns-harness-codebase-reverse-specns-harness