Skip to main content
rule CX Codex

wiki-context.en — Claude Code rule: what it does, how to install

wiki-context.en is a Claude Code rule that reads relevant wiki hints and lesson entries during a terminal session.

Apache-2.0 ★ 262 updated 2026-11-17

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/wiki-context.en.md
Open on GitHub

What wiki-context.en does

wiki-context.en handles terminal messages that point to potentially relevant wiki pages. It reads a page only when the match matters and limits the read to the supplied hit lines through sed -n, rather than loading the whole page.

The rule also reads quoted lessons from rule-candidates-recurrence*.md under GATE_WIKI. These cover first-turn reminders, correction hints, and one daily reminder for unanswered proposals. WIKI_INGEST skips the injection. An optional weekly comparison uses HOOK_LESSONS_TRIAL_START with an ISO date and is disabled by default.

What it helps with

  • identify a relevant wiki page from a terminal-session hint
  • read only matching page lines with sed -n
  • bring recurrence lessons into the first agent turn
  • surface a daily reminder for unanswered proposals
  • skip lesson injection with WIKI_INGEST

Example prompts for the agent

  • Read the relevant wiki page, using only the hit lines supplied through sed -n.
  • Load the first-turn lessons from GATE_WIKI/rule-candidates-recurrence*.md and include the correction hints.
  • Set HOOK_LESSONS_TRIAL_START to an ISO date for the optional weekly comparison.

How to install wiki-context.en

Manually: put the files in place

.claude/rules/wiki-context.en.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about wiki-context.en

How do I install wiki-context.en in Claude Code?

Place the rule file at .claude/rules/wiki-context.en.md.

What does wiki-context.en do?

It uses terminal wiki hints to select relevant pages and reads only their supplied matching lines with sed -n. It also loads lessons from rule-candidates-recurrence*.md under GATE_WIKI for the first turn, correction hints, and a daily unanswered-proposal reminder.

What does wiki-context.en need to work?

It needs a terminal session, the GATE_WIKI directory with rule-candidates-recurrence*.md, and sed -n. The optional weekly comparison uses HOOK_LESSONS_TRIAL_START with an ISO date, while WIKI_INGEST skips injection.

Source text

wiki-context.en.md · Apache-2.0
- Wiki hints (wiki-context): in a terminal session a message may start with 「可能相关的 wiki 页」; read a page only when it is relevant, and only the hit lines given (`sed -n`), not the whole page.
- Read quoted lessons from rule-candidates-recurrence*.md under GATE_WIKI: first-turn high-frequency reminders, correction hints and one daily reminder for unanswered proposals. WIKI_INGEST skips injection. Set HOOK_LESSONS_TRIAL_START to an ISO date for the optional weekly comparison (disabled by default).

© zuiho-kai · Apache-2.0 · zuiho-kai/bothouse

Similar IDE rules

All IDE rules for Writing and docs →

From the same set14

The whole set →
dsh-cc-compat.en dsh-cc-compat.en is a Claude Code rule that keeps DSH role switches, tool names, and Stop conversion aligned across sessions. CX Codex +1 ★ 262repo stars codemap-inject.en codemap-inject.en is a Claude Code rule that injects codebase maps into subagent prompts matching map keywords. The subagent reads the map first and lists new symbols to append upon completion. CX Codex +1 ★ 262repo stars choice-ask-guard.en choice-ask-guard.en is a Claude Code rule that checks agent questions against decisions already made and leaves open choices to the user. CX Codex +1 ★ 262repo stars param-source-guard.en The param-source-guard.en rule for Claude Code requires every new numeric parameter in code to include a source comment. It tracks limits, thresholds, and windows to ensure they trace back to user input, specs, or measurements. CX Codex +1 ★ 262repo stars _head.en _head.en is a Claude Code rule that controls tool call validation through external hooks. It blocks unauthorized bypasses and lets users toggle safety checks on demand. CX Codex +1 ★ 262repo stars dispatch-review-guard.en dispatch-review-guard.en is a Claude Code rule that checks review markers before a task is dispatched to a subagent. CX Codex +1 ★ 262repo stars bash-guard.en The bash-guard.en rule for Claude Code restricts dangerous terminal commands and enforces background task timeouts. CX Codex +1 ★ 262repo stars long-task long-task is a Claude Code subagent for tasks with 5–60 minute waits. It runs lengthy commands in the background and hands work over when waiting should stop. CX Codex ★ 262repo stars

Project sponsors

Companies that keep this analytics open