ワンクリックで
grimp-architecture
Explore Python import graphs and enforce layered architecture using grimp.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Explore Python import graphs and enforce layered architecture using grimp.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Manages issues via the br CLI (beads), a local-first tracker stored in .beads/ (SQLite + JSONL). Use when capturing issues, finding ready work, claiming issues, managing dependencies, or syncing changes. Triggers: "br", "beads", "issue tracking".
Review, rewrite, and debug LLM prompts. Use when asked to: (1) improve an existing prompt, (2) design a new system or developer prompt, (3) add few-shot examples, (4) define output schemas and success criteria, (5) diagnose prompt failures from transcripts. Not for: model policy workarounds, producing domain answers without context, or guaranteeing model-specific behavior.
Creates or updates mala.yaml project configuration files for the local mala orchestrator. Use when asked to initialize, generate, write, edit, validate, fix, or explain a mala.yaml config, including presets, commands, coverage, evidence checks, validation triggers, or review settings.
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise. Triggers: simplify, refine, clean up code.
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.
Executes SQL queries on Dune Analytics and writes results as CSV to /tmp. Use when the user needs blockchain data from Dune or wants to run a saved Dune query by ID. Triggers: "dune query", "dune sql", "query dune", "blockchain data"
| name | grimp-architecture |
| description | Explore Python import graphs and enforce layered architecture using grimp. |
Use this skill when the user wants to explore Python module boundaries, investigate dependency flow, or enforce layered architecture with grimp.
Create the venv and install grimp (requires Python 3.12):
uv venv ~/.agents/skills/grimp-architecture/.venv --python 3.12
uv pip install grimp --python ~/.agents/skills/grimp-architecture/.venv/bin/python
# Shorthand
GRIMP=~/.agents/skills/grimp-architecture/.venv/bin/python\ ~/.agents/skills/grimp-architecture/scripts/grimp_cli.py
$GRIMP explore mypackage
$GRIMP path mypackage.validation mypackage.orchestrator
$GRIMP layers --layer mypackage.api --layer mypackage.domain --layer mypackage.infra
$GRIMP layers --layer mypackage.api --layer mypackage.domain --layer mypackage.infra --json > .grimp-baseline.json
$GRIMP diff --baseline .grimp-baseline.json --layer mypackage.api --layer mypackage.domain --layer mypackage.infra
explore <package> [--top N]: summarize structure, fan-in/out, and child packages.path <importer> <imported>: shortest import chain between modules/packages.layers --layer ...: find illegal dependencies for an ordered layer list.diff --baseline ... --layer ...: fail only on new layer violations.All commands accept --include-external to include external packages in the graph.
explore before defining layers so you understand how the code is organized.Grimp needs the project to be importable by package name (not file paths).
__init__.py files.src/ layouts, set PYTHONPATH=src or install the project.Sanity check:
python -c "import mypackage; print(mypackage.__file__)"
Common options:
uv sync
uv pip install -e .
PYTHONPATH=src $GRIMP explore mypackage # for src/ layouts
~/.agents/skills/grimp-architecture/.venv has grimp pre-installed.