CommunityKunst & Designgithub.com

chancy24/codex-knowledge-base-skill

A reusable Agent Skill for Codex and other coding agents to initialize, maintain, and evolve a project-level knowledge base.

Funktioniert mitClaude CodeCodex CLICursorGemini CLI
npx skills add chancy24/codex-knowledge-base-skill

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Dokumentation

Project Knowledge Maintainer

Purpose

Use this Skill to initialize, maintain, and evolve a project-level knowledge base for AI coding agents. The knowledge base helps future agent sessions understand project purpose, architecture, interfaces, decisions, bugs, and recent changes without rediscovering everything from scratch.

Keep the workflow tool-neutral. It should be usable by Codex, Claude Code, Cursor, Gemini CLI, and other coding agents that can read project files and follow repository-local instructions.

When To Use

Use this Skill when the user asks to:

  • initialize a project knowledge base
  • summarize or document a project
  • fix a bug and preserve the repair experience
  • add or change a feature
  • add or change an API, schema, command, or data format
  • record a technical decision or tradeoff
  • organize raw project materials into structured knowledge
  • review or retrospect a completed development session
  • update AGENTS.md or files under knowledge/

Inputs

Common inputs include:

  • The current repository or target project path.
  • Existing project files, source code, docs, issues, logs, or raw materials.
  • The user's current task and any implementation changes made during the session.
  • Existing AGENTS.md, knowledge/, raw/, or skills/ content if present.

Outputs

Expected outputs include:

  • AGENTS.md project rules.
  • knowledge/overview.md project overview.
  • knowledge/business.md business logic and usage scenarios.
  • knowledge/architecture.md system architecture and data flow.
  • knowledge/api.md interfaces, schemas, commands, and data structures.
  • knowledge/decisions.md technical decisions and tradeoffs.
  • knowledge/bugs.md bug history, root causes, fixes, and prevention rules.
  • knowledge/changelog.md session-level change records.
  • Optional raw/ and project-local skills/ folders.
  • A short final report listing what was updated and what still needs verification.

Workflow

  1. Read project rules first:
    • AGENTS.md if present.
    • knowledge/overview.md
    • knowledge/architecture.md
    • knowledge/decisions.md
    • knowledge/bugs.md
  2. If initializing a repository, use the templates in references/templates/ or run the initializer script from this package.
  3. Understand the current task and identify what changed:
    • project goal or business logic
    • architecture or module boundaries
    • API, command, data file, schema, or return structure
    • bug symptom, root cause, fix, or prevention rule
    • technical decision or tradeoff
    • user-facing behavior or UI convention
  4. Update only the relevant knowledge files.
  5. Remove or reconcile duplicate, stale, or contradictory content.
  6. Always update knowledge/changelog.md after important work.
  7. Report the updated files and any missing validation.

For more detailed maintenance guidance, read references/playbook.md.

Updating knowledge/

Use the smallest file that matches the change:

  • Update overview.md for durable project purpose, scope, major modules, and major outputs.
  • Update business.md for user scenarios, workflows, domain rules, and safety boundaries.
  • Update architecture.md for module relationships, data flow, runtime modes, and integration boundaries.
  • Update api.md for endpoints, functions, commands, events, data files, schemas, and return structures.
  • Update decisions.md for meaningful technical choices and tradeoffs.
  • Update bugs.md for confirmed bugs and lessons learned.
  • Update changelog.md for every important task summary.

Do not dump transient reasoning into the knowledge base. Prefer stable facts, validated decisions, and reusable lessons.

Bug Retrospectives

When a bug is fixed, update knowledge/bugs.md with:

  • Problem symptom.
  • Root cause.
  • Fix.
  • Affected scope.
  • Validation performed.
  • Rule to prevent recurrence.

If the root cause is uncertain, mark it as pending verification instead of guessing.

Interface Changes

When an API, command, function, schema, CSV, event, or file format changes, update knowledge/api.md with:

  • Interface name.
  • Request method or invocation style.
  • Path, command, function name, or file path.
  • Inputs and parameters.
  • Response or output format.
  • Notes, constraints, and examples.

Use exact names and field spellings.

Technical Decisions

When a meaningful technical choice is made, update knowledge/decisions.md with:

  • Decision background.
  • Options considered.
  • Final choice.
  • Reason for the choice.
  • Consequences and follow-up work.

Record decisions that will help future agents avoid reopening settled questions.

Avoiding Knowledge Rot

  • Prefer editing an existing entry over adding a near-duplicate entry.
  • Mark outdated content as superseded or replace it with the current fact.
  • Keep project facts separate from speculation.
  • Use dates for decisions, bugs, and changelog entries.
  • Keep wording agent-neutral unless a specific tool integration requires a tool-specific note.
  • Do not overwrite user-authored project rules without an explicit request.

Final Response

Keep the final response concise. Include:

  • Files updated.
  • Validation performed.
  • Any remaining manual checks.

Verwandte Skills

limited-grisaille833/claude-java-plugins

Boost Claude Code with Java plugins for Java 8–21 projects, including core, Spring, and quality checks tailored to your target version

community

momenh2004/openai_agents_sdk_full_course

🧠 Explore the OpenAI Agents SDK with this full course. Build intelligent AI agents through hands-on projects and clear lessons in Python.

community

urasbi5905/repo-analyzer

Generate professional architectural reports and design insights for codebases using this AI coding agent skill.

community

LingoJack/j

j 是一款 Rust 构建的命令行效率工具,融合别名管理、日报系统、AI 对话与 Agent 能力。支持注册应用和 URL 为简短别名一键打开,内置日报写入与 Git 同步,TUI 待办管理可联动日报,AI 对话支持多模型切换、流式输出和 Markdown 渲染。Agent 模式让 AI 自主调用工具完成复杂任务,支持多步推理、上下文自动压缩和后台任务执行。移动端扫码即可远程控制 AI 对话界面,随时继续工作。浏览器自动化提供 Lite 模式(无依赖)和 CDP 模式(完整控制),Skill 技能系统按需加载专业能力,Hook 系统支持三级配置灵活扩展 AI 行为。

community

jvogan/symphony-claude-lane

Long-horizon multi-agent orchestration via Linear. Claude Code workers run subscription-billed in attachable tmux sessions, optionally paired with Codex via Symphony.

community

VULK-dev/vulk-mcp-server

VULK MCP Server — Build, deploy, and export full-stack applications from any AI assistant.

community