How this skill is triggered — by the user, by Claude, or both
Slash command
/ctx:initThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up the client context system in the current project. Idempotent — safe to run on both fresh projects and projects with existing context vaults.
Set up the client context system in the current project. Idempotent — safe to run on both fresh projects and projects with existing context vaults.
Templates for scaffolding live alongside this skill in templates/.
Check what already exists:
context-vault/ exist?.claude/rules/context-vault.md exist?CLAUDE.md contain a "## Context Vault" section?context-vault/projects/?.claude/rules/project-{slug}.md?Report what was found.
If context-vault/ does not exist, create:
context-vault/
├── index.md # Empty master index with header
├── log.md # Empty log with header
├── projects/
├── decisions/
├── action-items/
├── strategies/
├── requirements/
├── people/
├── docs/
│ ├── meetings/
│ ├── client-docs/
│ └── deliverables/
├── config.yaml # From templates/config.yaml, with project name filled in
├── dashboard.base # From templates/dashboard.base
└── .gitignore # From templates/gitignore
If context-vault/ already exists but dashboard.base is missing, create it from templates/dashboard.base.
If context-vault/ already exists and dashboard.base exists, skip.
Before creating any rules, cross-reference the vault against the filesystem:
ls projects/ls context-vault/projects/projects/. Warn and do NOT create rules for these./ctx:project.For each valid project (both vault entry AND physical dir exist):
ctx-{slug}.md, overview.md, or something else)Report the audit results before proceeding.
If .claude/rules/context-vault.md does not exist, copy from templates/context-vault-rule.md. This rule has empty frontmatter (no paths:) so it loads every session.
If it already exists, skip.
For each valid project from the audit (both vault + physical dir):
If .claude/rules/project-{slug}.md does not already exist:
.claude/rules/project-{slug}.md using templates/project-prime-rule.md as the base, with paths: scoped to projects/{slug}/**/*Report how many project rules were created.
If CLAUDE.md does not exist, create it with the Context Vault section from templates/claude-ctx-section.md.
If CLAUDE.md exists but does not contain a "## Context Vault" section, append the section from templates/claude-ctx-section.md.
If it already contains the section, replace ONLY that section (from ## Context Vault to the next ## heading or end of file) with the latest template. This ensures the section stays current without touching other content.
Read .claude/settings.json (or .claude/settings.local.json). If no statusLine config exists, add:
{
"statusLine": {
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/statusline.py context-vault/"
}
}
${CLAUDE_PLUGIN_ROOT} resolves to this plugin's installed path. The model sees the concrete path and writes it into settings.json.
If the file already has other settings, merge the statusLine key without overwriting existing config. If a statusLine config already exists, skip.
Check for remnants of the old KB CLI system. Only relevant for projects migrating from the previous k-base plugin:
kb-* or kb_cli recipes → report.claude/settings.local.json or .claude/settings.json with kb-* or k-base:* permissions → reportconfig.yaml with fireflies: section from old system → report## Knowledge Base section (old, not ## Context Vault) → report.obsidian/workspace.json) with .knowledge-base/ or knowledge-base/ paths → reportpeople/ alias stubs with alias_of frontmatter → report (should be deleted if canonical page exists)<!-- kb-enriched:v1 --> HTML comments in entity pages → note (cosmetic, low priority)Present all findings. Propose cleanup actions. Wait for approval before making any changes.
Summary of what was done:
/ctx:project <name> to add new projectsFetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.
npx claudepluginhub rugved-rakebma/client-mgt-market --plugin client-ctx-sys