rebuild-mental-model

Rebuild codebase mental-model documentation with subagent source exploration.

1|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/kang-sw/devenv --skill rebuild-mental-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rebuild-mental-model
Source: https://github.com/kang-sw/devenv/tree/main/claude-skills/rebuild-mental-model
Command: npx skills add https://github.com/kang-sw/devenv --skill rebuild-mental-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of maintaining up-to-date, actionable knowledge about a codebase's internal contracts, coupling, and extension points, preventing silent failures and technical debt.

Core Features & Use Cases

  • Automated Knowledge Capture: Generates and updates documentation for codebase operational knowledge, focusing on implicit invariants and change propagation.
  • Delegated Analysis: Leverages subagents to explore source code, keeping the main context window focused.
  • Use Case: When a new feature is added or a significant refactor occurs, this Skill can be invoked to automatically update the mental model documentation, ensuring developers have the latest insights into how to modify the codebase safely.

Quick Start

Run the rebuild-mental-model skill to update the codebase's operational knowledge.

Frequently Asked Questions about rebuild-mental-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document codebase operational knowledge and implicit contracts?

To document codebase operational knowledge, you can use a skill that rebuilds the mental-model directory, focusing on module contracts, coupling maps, extension points, and technical debt rather than direct source paraphrasing.

What is the best way to update codebase documentation after a major refactor?

The best way to update codebase documentation after a refactor is to run a mental model rebuild skill, which delegates source exploration to subagents and automatically updates operational knowledge to ensure safe codebase modifications.

How does automated codebase knowledge capture maintain a concise context window?

Automated codebase knowledge capture maintains a concise context window by delegating source code exploration to subagents, keeping the main context focused on generating operational knowledge like coupling maps and common mistakes.

Can I capture technical debt and extension points without listing APIs?

Yes, you can capture technical debt and extension points without listing APIs by using a tool that rebuilds mental models, specifically excluding direct source paraphrasing or API listings to focus on actionable operational knowledge.

Does codebase documentation generation work for managing change propagation and silent failures?

Yes, codebase documentation generation works for managing change propagation by capturing implicit invariants and coupling maps, preventing silent failures and ensuring developers have the latest insights for safe modifications.