Docs/Procedure
#

Procedure

  1. Confirm the target.

    bash
    cofactor property list
    cofactor property skill list --property <id>     # see what's already authored, if anything
    

    If the property isn't linked to this repo (or to no repo at all), stop and link it first (see prerequisite above).

  2. Capture provenance. Grab the current commit SHA so the items carry "authored from <repo>@<sha>":

    bash
    SHA=$(git rev-parse HEAD)
    SOURCE_ID="$(gh repo view --json nameWithOwner -q .nameWithOwner)@$SHA"
    
  3. Author in your editor, not in shell. Assemble a bundle.json:

    json
    {
      "items": [
        { "section": "navigation", "itemKey": "url_grammar", "itemLabel": "URL grammar",
          "content": "URLs follow /<entity-type>/<id> for list and detail…" },
        …
      ]
    }
    

    Keep item content as plain prose — it ships verbatim into the runtime agent's system prompt.

  4. Diff before write. Compare against what's already there so you don't churn identical content:

    bash
    cofactor property skill list --property <id> --format json
    
  5. Import. One call writes the whole bundle:

    bash
    cofactor property skill import --property <id> --file bundle.json --source-id "$SOURCE_ID"
    

    Append-only versioning makes re-runs safe.

  6. Verify. Skim the result and re-apply the translation check on three random items:

    bash
    cofactor property skill list --property <id>
    cofactor property skill export --property <id> --format md