mine-arch

mine-arch is a skill for Claude Code, Codex from 6ixGODD/mine. It costs 103 tokens per session (5,668 once invoked), scanned A, original, MIT.

A workflow for discovering or designing a repository's modular architecture and recording it as a maintained design reference under docs/design/index.md.

In plain words
What is it for?
Starting projects, repairing weak architecture documentation, handling major module-boundary changes, setting up engineering governance, and configuring or validating formatting, linting, type checks, tests, builds, hooks, and CI.
Why use it?
It connects architectural decisions to requirements and sets up development rules and quality checks, reducing the risk that documentation and project safeguards become outdated.

Skill for Claude CodeCodex

Part of the mine-is-not-everyones plugin — 5 skills, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/6ixgodd/mine/mine-arch
Any agent
npx skills add 6ixGODD/mine --skill mine-arch
Clone the repo
git clone --depth 1 https://github.com/6ixGODD/mine

Made for: Claude Code, Codex.

Or install mine-is-not-everyones, the plugin that ships this one along with the rest of its 5 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mine-arch

README.md
[![agentmods](https://agentmods.dev/badge/skills/6ixgodd/mine/mine-arch.svg)](https://agentmods.dev/skills/6ixgodd/mine/mine-arch)
Your own site
<a href="https://agentmods.dev/skills/6ixgodd/mine/mine-arch"><img src="https://agentmods.dev/badge/skills/6ixgodd/mine/mine-arch.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,668 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00103 $0.05668
Opus 5 $0.00051 $0.02834
Sonnet 5 $0.00021 $0.01134
Haiku 4.5 $0.00010 $0.00567

Measured today against content hash 9d30891960fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mine-arch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/mine/skills/mine-arch/SKILL.md · 515 lines

How it starts

The opening of the file, as written. The whole thing — 515 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MINE Architecture

Create or update the repository architecture and make the repository capable of enforcing it.

MINE Is Not Everyone's. This skill is not limited to writing prose. It owns:

  • architecture discovery and design;
  • the modular, progressive-disclosure design knowledge base rooted at docs/design/index.md;
  • repository-wide engineering agreements in AGENTS.md;
  • selection and initialization of language-appropriate quality gates;
  • creation or repair of missing formatter, linter, type-checker, test, build, pre-commit, and CI configuration;
  • validation that the documented commands actually run.

mine-arch is requirement-first (governed by docs/design/integrations/skills.md and docs/design/governance/design-knowledge-base.md). It designs target architecture from user requirements and may intentionally differ from current code; it must not silently treat current code as the target architecture when the user's requirement changes that target. This makes it the requirement-first counterpart to mine-sync, which is code-first by intent.

Fixed outputs (the MINE design knowledge base)

MINE owns docs/design/ (ADR-0006). The design tree is a progressive-disclosure knowledge base, not a single manuscript:

docs/design/
  .mine-design.toml       # ownership marker (schema_version, managed_by=MINE, repository_id, created_at)
  index.md                # root index, links to domain indexes
  <domain>/
    index.md
    <component>/
      index.md
      <leaf>.md           # exact contracts live here
  • The root index is docs/design/index.md; every design area owns an index.md.
  • Root index links to domain indexes; domain indexes link to component indexes; leaves contain exact contracts.
  • One contract has one authoritative leaf; an index may summarize a child in one or two sentences but does not duplicate its full contract.
  • Do not create a competing single-document architecture source, and do not rename docs/design/index.md to something else or introduce a competing architecture-and-detailed-design.md file.

Read the full file on GitHub · 515 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +14 lines 9d30891960fb
  2. 4d ago First seen · 501 lines · 103 tokens per session scan A c942fe5d87c4

Subscribe to this mod's changes

mine-arch is a skill published in the GitHub repository 6ixGODD/mine (17 stars, last pushed 4d ago), licensed MIT. It adds 103 tokens to every session and 5,668 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

refactor

Expert code refactoring based on Martin Fowler's catalog — improve maintainability without changing behavior. Covers code smells, composing methods, moving features, organizing data, simplifying conditionals, method calls, and generalization. Triggers on: refactor, 重构, clean up, improve code, code smell, extract…

smallnest/goal-workflow · 71 tokens

loop-it

Automated issue loop with checkpoint/resume: fetch open GitHub issues → dependency-aware topological sort → implement each issue end-to-end → review with /review-it → ship with /ship-it → repeat. Persists state to .loop-state.json for crash recovery. Triggers on: loop-it, loop issues, auto implement, 批量实现, 循环实现…

smallnest/goal-workflow · 93 tokens

to-issues

Decompose a PRD and/or SPEC into implementable, vertically-sliced Issues with real blocking edges, then create them in your chosen platform (GitHub or Local). Use after /prd (and optionally /prd-to-spec) to turn requirements into agent-ready tickets. Triggers on: create issues, to-issues, 创建issue, 拆解issue, 生成卡片, 创建卡片…

smallnest/goal-workflow · 96 tokens

listenhub-tts

使用 ListenHub API 将文本转换为语音(TTS)。支持三种模式:快速合成(/v1/tts)、 多角色脚本(/v1/speech)、长文本流式合成(/v1/flow-speech/episodes)。 音色未指定时自动获取音色列表供用户选择,默认使用 chat-girl-105-cn(晓曼)。 Use when user says: "tts", "text to speech", "语音合成", "文字转语音", "朗读", "生成语音", "生成音频", "转音频", "text to audio".

smallnest/goal-workflow · 138 tokens

article-icons

Illustrate an article (Markdown, HTML, etc.) with animated-style icons from itshover.com/icons. Fetches icons as clean inline SVG and places them at section headings, key concepts, lists, and callouts. Triggers on: /article-icons, 配图, 给文章配图标, add icons to article, illustrate with icons.

smallnest/goal-workflow · 74 tokens

humanize-it

对指定文档进行去 AI 味的改写。自动选择最合适的人性化策略(humanizer-zh / humanize-chinese / technical-writing), 迭代改写直到效果达标或迭代 42 次为止。适用于中文文本的去 AI 化处理,包括通用文章、技术文档、学术论文等。 Use when user says: "humanize this", "去AI味", "降AIGC", "人性化改写", "改成人话", "去除AI痕迹", "humanize document", "make text human-like", "去机器味", "降低AI率", "过AIGC检测".

smallnest/goal-workflow · 152 tokens