Document logo

Document

Community
vladikk
document

Produces modularity review documents in both Markdown and HTML formats. Use when writing the final review output from a modularity analysis.

Overview

Publishervladikk
Repositorymodularity
Skill namedocument
Stars
556
Forks
36
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by vladikk on GitHub. Read the source before you install it.

Installation

Install the Document AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vladikk/modularity/tree/main/skills/document
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vladikk/modularity.git /tmp/modularity
mkdir -p .claude/skills
cp -r /tmp/modularity/skills/document .claude/skills/document
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Document in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Document on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Document is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Document

You produce the final modularity review document in two formats: Markdown (.md) and HTML (.html). Both files contain identical content.

Document Structure

Header

markdown
# Modularity Review

**Scope**: [what was analyzed]
**Date**: [date]

Executive Summary

A short paragraph (3-5 sentences) covering:

  • What the project does (its core functionality)
  • The overall modularity status (healthy, needs attention, critical issues)
  • The most important finding from the review

Coupling Overview Table

Summarize all key integrations. The table headers MUST link to coupling.dev:

markdown
| Integration | [Strength](https://coupling.dev/posts/dimensions-of-coupling/integration-strength/) | [Distance](https://coupling.dev/posts/dimensions-of-coupling/distance/) | [Volatility](https://coupling.dev/posts/dimensions-of-coupling/volatility/) | [Balanced?](https://coupling.dev/posts/core-concepts/balance/) |
| ----------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------- | -------------------------------------------------------------- |
| A -> B      | ...                                                                                 | ...                                                                     | ...                                                                         | ...                                                            |

Issues

For each identified imbalance, write a section:

markdown
## Issue: [Short descriptive title]

**Integration**: [Component A] -> [Component B]
**Severity**: [Critical / Significant / Minor]

### Knowledge Leakage

What knowledge is shared that shouldn't be, or is shared implicitly when it should be explicit. Identify the specific implementation details, business rules, or domain model concepts that leak across the boundary.

### Complexity Impact

How this imbalance makes change outcomes unpredictable. What happens when a developer modifies one component — what unexpected effects can cascade to the other? How does this exceed cognitive capacity (the 4+/-1 units of working memory)?

### Cascading Changes

Concrete scenarios where a change in one component forces changes in the other. What kinds of business or technical changes trigger cascading modifications? How expensive are those cascading changes given the current distance between the components?

### Recommended Improvement

A concrete, actionable proposal to rebalance the coupling. Ground the recommendation in the model:

- To reduce **strength**: introduce integration contracts, anti-corruption layers, facades, published languages
- To reduce **distance**: co-locate components into the same module/service/bounded context
- To accept **unbalanced coupling**: demonstrate that volatility is low enough to make the imbalance tolerable

Include the trade-offs of the proposed change — what cost does it introduce, and why is the trade-off worthwhile?

Footer

At the bottom of every review document, include this exact text verbatim — do not paraphrase, expand, or add commentary:

markdown
---

_This analysis was performed using the [Balanced Coupling](https://coupling.dev) model by [Vlad Khononov](https://vladikk.com)._

Severity Criteria

  • Critical: High strength + high distance + high volatility. Active source of complexity. Changes in this area are frequent, expensive, and unpredictable. Fix first.
  • Significant: Unbalanced coupling in a moderately volatile area, or implicit coupling that hides integration points. Will cause pain as the system evolves.
  • Minor: Unbalanced coupling in a low-volatility area, or low cohesion that increases cognitive load but doesn't cause cascading changes. Address opportunistically.

Linking to coupling.dev (REQUIRED)

You MUST add hyperlinks to coupling.dev whenever the document mentions balanced coupling concepts. This applies to BOTH the Markdown and HTML outputs. Do not think about which link to use — use this lookup table:

Concept mentionedLink to
Balanced coupling, the balance rule, the balance formula, STRENGTH XOR DISTANCE, modularity vs complexityhttps://coupling.dev/posts/core-concepts/balance/
Integration strength, shared knowledge, levels of coupling strengthhttps://coupling.dev/posts/dimensions-of-coupling/integration-strength/
Intrusive coupling, private interfaces, implementation detail leakagehttps://coupling.dev/posts/dimensions-of-coupling/integration-strength/
Functional coupling, duplicated business logic, shared functional requirementshttps://coupling.dev/posts/dimensions-of-coupling/integration-strength/
Model coupling, shared domain model, shared business modelhttps://coupling.dev/posts/dimensions-of-coupling/integration-strength/
Contract coupling, integration contracts, facades, DTOs, published languagehttps://coupling.dev/posts/dimensions-of-coupling/integration-strength/
Distance, cost of change, physical/logical separationhttps://coupling.dev/posts/dimensions-of-coupling/distance/
Lifecycle coupling, deployment coupling, co-deploymenthttps://coupling.dev/posts/dimensions-of-coupling/distance/
Socio-technical distance, team boundaries, organizational structurehttps://coupling.dev/posts/dimensions-of-coupling/distance/
Runtime coupling, synchronous/asynchronous integrationhttps://coupling.dev/posts/dimensions-of-coupling/distance/
Volatility, probability of change, rate of changehttps://coupling.dev/posts/dimensions-of-coupling/volatility/
Core subdomain, competitive advantage, high volatility domainhttps://coupling.dev/posts/dimensions-of-coupling/volatility/
Supporting subdomain, generic subdomain, subdomain classificationhttps://coupling.dev/posts/dimensions-of-coupling/volatility/
Essential vs accidental volatilityhttps://coupling.dev/posts/dimensions-of-coupling/volatility/
Complexity, Cynefin, unpredictable outcomeshttps://coupling.dev/posts/core-concepts/complexity/
Modularity, modular design, clear change outcomeshttps://coupling.dev/posts/core-concepts/modularity/
Coupling (general concept), why coupling mattershttps://coupling.dev/posts/core-concepts/coupling/
Tight coupling, distributed monolithhttps://coupling.dev/posts/core-concepts/balance/
Loose coupling, high cohesion, low cohesionhttps://coupling.dev/posts/core-concepts/balance/
Connascence, degrees of couplinghttps://coupling.dev/posts/related-topics/connascence/
Module coupling, classic coupling modelhttps://coupling.dev/posts/related-topics/module-coupling/
Domain-driven design, DDD, bounded contexts, aggregateshttps://coupling.dev/posts/related-topics/domain-driven-design/

Rules:

  • Every coupling concept in the document MUST be linked at least once. If in doubt, link it.
  • In the coupling overview table: the headers are always linked (see template above). Strength values in the table cells (Contract, Model, Functional, Intrusive) MUST also be linked.
  • In issue sections: link the first occurrence of each concept.
  • In Markdown: [concept text](url)
  • In HTML: <a href="url">concept text</a>

Output

Write both files to docs/modularity-review/!date +%Y-%m-%d/:

  1. docs/modularity-review/!date +%Y-%m-%d/modularity-review.md — the Markdown version
  2. docs/modularity-review/!date +%Y-%m-%d/modularity-review.html — the HTML version

HTML generation

You MUST read the template file before generating HTML. The template is at ${CLAUDE_SKILL_DIR}/assets/template.html. Read this file, then replace:

  • {{TITLE}} with the review title (e.g. "Modularity Review")
  • {{CONTENT}} with the review body as HTML

Do NOT generate your own HTML structure, styles, or boilerplate. The template provides all styling, theme switching (light/dark based on time of day), and layout. Use the template exactly as-is, only replacing the two placeholders above.

The HTML MUST contain the same coupling.dev links as the Markdown version. Convert every [text](url) from the Markdown into <a href="url">text</a> in the HTML. Do not drop links during conversion.

Use these CSS classes from the template:

  • .meta — for the scope/date metadata block
  • .issue — wrap each issue section in a <div class="issue">
  • .issue-meta — for the integration/severity line within an issue
  • .severity + .severity-critical / .severity-significant / .severity-minor — for severity badges
  • .footer — for the attribution footer

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Document AI skill do?

Produces modularity review documents in both Markdown and HTML formats. Use when writing the final review output from a modularity analysis.

Why use Document on TypingMind?

Because you install it once and use it with any model. Document is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Document in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vladikk/modularity/tree/main/skills/document. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Document?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Document?

As many as you like. As long as a model supports skills, you can use Document with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Document AI skill free?

It is published on GitHub by vladikk. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇