Skip to content
Development
Skill

/hub-safety

Safety checks and procedures when modifying hub files (files imported by 3+ others). Activated when editing files with high importer counts.

From plugin
codemap
7057 skills1 MCP

Claude Code

$ npx -y skills add JordanCoin/codemap --skill hub-safety --agent claude-code

SKILL.md

hub-safety.SKILL.md
name: hub-safety
description: Safety checks and procedures when modifying hub files (files imported by 3+ others). Activated when editing files with high importer counts.

Hub Safety Protocol

Hub files are imported by 3+ other files. Changes here ripple across the codebase.

Before editing a hub file

1. Run `codemap --importers <file>` to see all dependents 2. Understand the public API surface: which functions/types are used externally 3. Check if tests exist for dependents, not just the hub itself

While editing

  • Prefer additive changes over breaking changes
  • If renaming or removing a public symbol, update all importers in the same commit
  • If changing a function signature, check all call sites

After editing

  • Run the full test suite, not just the hub's tests
  • Run `codemap --deps .` to verify the dependency graph is intact
  • If the hub has 8+ importers, consider a staged rollout (change hub, test, update callers separately)

Risk escalation

| Importers | Risk | Action | |-----------|------|--------| | 3-5 | Medium | Run package tests + direct importer tests | | 6-10 | High | Run full test suite, review all importers | | 10+ | Critical | Consider splitting the hub or using an interface |

@jordancoin
Ships withcodemap

codemap — structural ground truth for coding agents. Resolves what your code actually imports, tells you what breaks if you change it, and is explicit about what it couldn't figure out.

7057 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
705
Star history of JordanCoin/codemap on GitHub, a chart by star-history.com

Other skills on codemap.

More skills from other plugins.

brainstorming
Skill
Popular
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
accessibility
Skill
Popular
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2d293k
@affaan-m@affaan-mInstall Skill
compiler-commit
Skill
Popular

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about hub-safety.

Which coding agents can use hub-safety?
hub-safety installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.