skills/discover-docs-norms/SKILL.md
Discover and propose project-specific artifact norms (paths, naming, lifecycle) from existing docs structure without writing norms files.
npx skillsauth add nesnilnehc/ai-cortex discover-docs-normsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
发现并提案项目级文档规范(路径、命名、front-matter、生命周期),为后续创建或更新规范文件提供输入依据。
首要目标:产出可审阅的规范提案,不执行规范落盘。
成功标准(必须全部满足):
define-docs-norms)docs/ARTIFACT_NORMS.md验收测试:是否可在不改动仓库结构的前提下,仅凭提案让团队评审并决定是否落盘?
本技能负责:
本技能不负责:
docs/ARTIFACT_NORMS.md(使用 define-docs-norms)tidy-repo)assess-docs)交接点:提案确认后,交给 define-docs-norms 落盘规范。
docs/(若不存在则扫描仓库内 Markdown)docs/calibration/docs-norms-proposal.mddefine-docs-normsdocs/calibration/docs-norms-proposal.md(规范提案)docs/ARTIFACT_NORMS.mddocs/ARTIFACT_NORMS.md不要做这些(其他技能负责):
define-docs-normstidy-repoassess-docsdefine-docs-normsdocs/ARTIFACT_NORMS.mddocs/ 结构docs/calibration/docs-norms-proposal.mddefine-docs-normsdocs/design/ 与 docs/design-decisions/define-docs-norms 固化 canonical 规则本技能产出 Docs Norms Proposal(不写规范本体):
| 元素 | 格式 | 必填字段 | 路径模式 | | :--- | :--- | :--- | :--- | | 提案主体 | Markdown | front-matter(artifact_type=proposal / lifecycle=snapshot);章节:扫描结果 / 提议规则 / 与现状差异 / 风险 | docs/calibration/docs-norms-proposal.md | | 提议规则 | 表格 | rule_kind(path / naming / lifecycle)/ pattern / evidence_files / confidence | 「提议规则」节 | | 与现状差异 | 列表项 | 既有 docs 中违反此提议的实例路径;用于评估变更代价 | 「与现状差异」节 |
development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.