AGENT SKILL

cortex-document-map

Audit Nook Cortex navigation, ownership graphs, and canonical index structure.

License 许可
MIT
所属仓库
meta-secret/nook
最近更新
2026-11-12
Stars
★ 3
Forks
0

01 前言 Front Matter

name
cortex-document-map
description
Audit Nook Cortex navigation, ownership graphs, and canonical index structure.

02 资源文件 22

03 SKILL.md 正文

Nook Cortex Navigation

Purpose

Route people and agents to Nook's owning Cortex context without copying upstream authoring practices or another document's headings.

Meta-Cortex owns generic graph and article rules. Follow its knowledge-graph practice and article-structure practice. Nook graph placement and topology are defined below and in the root index.

Nook graph topology

Every Nook navigation document is named index.md. Existing subject catalogs keep that same filename. The document-map tooling uses root, owner, and child indexes directly, without alternate navigation filenames.

Nook has one root router, project specifications and architecture, six functional owner graphs, shared knowledge, and project-local document owners.

  • The root graph selects project requirements and functional owner catalogs.
  • Project documents supply Nook requirements to Prime and its specialists.
  • The six owner graphs describe Delivery Pipeline, AI, development core, security, SRE, and web development context.
  • All executable roles and coordinator behavior come from Meta-Cortex.
  • The shared graph indexes genuinely cross-team documents.
  • Each Nook document belongs to one owning graph. The root graph does not index child documents directly, and one child graph does not index another context's documents.
  • Project-local .cortex/docs/spec/index.md and .cortex/docs/architecture/index.md own their local documents. Root and team graphs route to these indexes. Broader project indexes route to narrower module indexes without duplicating document ownership. Each local document is indexed once by its own spec or architecture index. Local graphs may read shared root requirements and route other local owner indexes; they do not directly index another owner's document.

Prohibited: launch separate AI and web coordinators because their contexts have separate graphs.

Preferred: the existing Prime supplies the AI and web contexts to their bounded worker assignments.

  • Prohibited: move an auth specification beside nook-auth2 but retain a second owning entry in the root development-core catalog, or omit it from audit discovery because it is outside root .cortex/.

  • Required: index that specification once in nook-app/nook-platform/nook-auth2/.cortex/docs/spec/index.md. Route the root team graph to that catalog. Discover project-local Cortex documents and apply the same document and ownership audits to them.

Nook document placement

When adding or moving a Nook document:

  1. Select its owning context from the root graph, following team routes to the owning project index for local documents.
  2. Put the document under its owning context and link it once from that owner's graph. Route other graphs to the owner index.
  3. Remove obsolete ownership links and update direct callers when a path changes.
  4. Update the central Nook skill registry when a skill card is added, moved, or retired.
  5. Place delivery specifications under the Delivery Pipeline specification catalog.

Use the supplied context and the upstream assignment-context rules for general context loading. An assigned Cortex writer works from the supplied AI context and relevant authorities without restarting root routing.

Validation

The required pull request path runs task loom:cortex-audit in pr-verification. The policy path ci:pr:tests:policy-with-delivery-helpers invokes preflight:repository-policy; its Docker stage inherits loom-verify and runs task loom:verify plus the document-map audit. Hosted execution is the default; required hosted checks remain mandatory. A local run of task loom:cortex-audit is a diagnostic governed by the root delivery and validation policy and never replaces the hosted result. Do not invoke unrelated or broader local preflight targets. A specific preflight target may be selected directly when it is the smallest suitable diagnostic for the recorded task need under the root policy. A selected repository task may also execute its declared necessary Taskfile prerequisites through that task.

task loom:cortex-audit
task loom:verify

task loom:cortex-audit checks Nook graph topology, document ownership, index uniqueness, and fragment-link rules. task loom:verify runs through the policy Docker stage described above as a required hosted check. A local loom:verify run is permitted only if that exact target is the smallest suitable diagnostic for the recorded task need under the root policy, whether selected directly or declared as a necessary prerequisite and invoked through the selected Task target; local output never replaces the hosted result. Semantic review still checks that the selected owner and links match the document's actual purpose.

The co-located read-only TypeScript application owns deterministic graph topology diagnostics and legacy index migration rendering. The static executable-skill host exposes its validated audit action through strict YAML; discover it with task skills:tools-list. The action does not read or write repository files, spawn processes, or coordinate agents.

04 同仓库更多 Skills