跳到正文
FunCoding

搜索

搜索文档、Skill 和 MCP

document

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

文档与办公552skills/document/SKILL.md

安装

把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。

读取 https://funcoding.ai/skills/vladikk/modularity/document/install.md ,按里面的步骤帮我安装这个 Skill。

SKILL.md

Document

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

Document Structure

# 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:

| 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:

## 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?

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

---

_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

相似的 Skill

pdf
anthropics/skills180k

pdf

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

文档与办公

discernment-nudge
anthropics/skills180k

discernment-nudge

After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format.

文档与办公

doc-coauthoring
anthropics/skills180k

doc-coauthoring

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

文档与办公

docx
anthropics/skills180k

docx

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

文档与办公

pptx
anthropics/skills180k

pptx

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

文档与办公

canvas-design
anthropics/skills180k

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

文档与办公