Wiki ingest

From stevehuang0115/crewly · View interactive version

Wiki ingest is an AI agent skill from the GitHub repository stevehuang0115/crewly. Append a source (spec / decision / chat / pr / learning) into a vault's llm-curated/ tree. Refuses writes into frozen paths.

How to use this skill

Skill file

Wiki Ingest

Append a source to a vault's llm-curated/log.md (default) or to a dedicated page under llm-curated/ (via --target). Per Atlas v2.1 §2 + §3.

The chat subscriber already auto-ingests every user→ORC chat message; this skill is for explicit manual ingest:

Inputs

| Flag | Required | Description |

|---|---|---|

| --vault <path> | yes | Absolute vault root (must contain SCHEMA.md). |

| --source-type <t> | yes | One of: user_chat, slack_message, spec_file, pr_merge, record_learning, task_verified. |

| --source-ref <ref> | yes | Stable reference for audit (URL, file path, message id, …). |

| --source-body <text> | yes | Body content to ingest. |

| --caller <sess> | no | Session/user that authored the source (defaults to source-ref). |

| --target <relpath> | no | Override the default llm-curated/log.md. Must NOT be inside a frozen folder. |

Output

{
  "success": true,
  "result": {
    "ok": true,
    "pagesWritten": ["llm-curated/log.md"],
    "logEntry": "## [ISO] sourceType | caller ...",
    "frozenPathsTouched": []
  }
}

Failure modes

Example: ingest a TL-promoted decision

bash execute.sh \
  --vault ~/.crewly/teams/ad923b66-19dd-4d73-9c92-dc1107d37501/wiki \
  --source-type user_chat \
  --source-ref slack://thread/D0ABC/1779363330.313849 \
  --source-body "Pricing locked at \$999 setup + \$799/month." \
  --caller user/steve \
  --target llm-curated/decisions/2026-05-22-crewly-pro-pricing.md

Page contract (2026-09-19 — the vault is a knowledge base, not a log)

log.md (the default target) is append-only and ungated: put "maybe useful" there. A page (--target llm-curated/<folder>/<name>.md) is refused (422 retention_gate) unless it carries:

| Flag | Meaning |

|---|---|

| --title | The page's name |

| --summary | One line: the conclusion — what this means for us, not what the source said |

| --keep-because | changes_decision · contradicts · hard_fact · reusable_method |

Optional: --tags a,b, --visibility teacher,admin (roles that may read it), --replace (rewrite instead of append).

What else happens on a page write:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.