OpenParable
Skip to content
← Back to skills

Using Kodex

Research
using-kodex

Using Kodex is an Agent Skill for research published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when project knowledge could help - queries Kodex topics and flags outdated information

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/context-management/using-kodex/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/using-kodex, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Using Kodex

Query and maintain the project knowledge base.

When to Query Kodex

Use judgment to query Kodex when project knowledge could help:

  • Starting work on a feature that may have established patterns
  • Investigating code that follows project conventions
  • Making architectural decisions that should align with existing patterns

Don't query for: Trivial tasks, unrelated work, or when you already have sufficient context.

How to Query

Topic Inference

Infer topic names from your current context:

  1. Extract key concepts from the task (e.g., "authentication", "error-handling")
  2. Try variations: {concept}, {concept}-patterns, {concept}-conventions

Example

Tool: mcp__plugin_mermaid-collab_mermaid__kodex_query_topic
Args: {
  "project": "<absolute-path-to-cwd>",
  "name": "authentication"
}

Handling Results

  • Topic found: Display content as context for your work
  • Topic not found: Try alternative names or continue without
  • Error: Log and continue (non-blocking)

When to Flag Topics

Flag a topic when it contradicts actual code after verification:

  1. Query a topic and notice potential discrepancy
  2. Read the actual source files to verify
  3. Confirm the topic is genuinely outdated/incorrect
  4. Flag with specific details

Flagging Example

Tool: mcp__plugin_mermaid-collab_mermaid__kodex_flag_topic
Args: {
  "project": "<absolute-path-to-cwd>",
  "name": "authentication",
  "type": "outdated",
  "description": "Topic says JWT tokens expire in 1 hour, but code shows 24 hours (see src/auth/config.ts:15)"
}

Never flag without verifying against actual code.

MCP Tool Reference

ToolPurpose
kodex_query_topicQuery a topic by name
kodex_list_topicsList all available topics
kodex_flag_topicFlag outdated/incorrect topic
kodex_dashboardView Kodex stats
kodex_list_flagsView flagged topics

Note: Topic creation and updates are human-driven. Claude should flag issues, not directly modify topics.