modular-code

modular-code is a skill for Claude Code from parcadei/Continuous-Claude-v3. It costs 8 tokens per session (698 once invoked), scanned A, original, MIT.

A set of guidelines for organizing Python code into focused, maintainable modules.

In plain words
What is it for?
Use it to decide when and how to split code by domain, abstraction layer, data type, or input/output boundary.
Why use it?
It helps prevent oversized files and mixed responsibilities from making code harder for people and coding tools to understand.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to decide when and how to split code by domain, abstraction layer, data type, or input/output boundary.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parcadei/continuous-claude-v3/modular-code
About the project

Continuous-Claude-v3 is a Claude Code development environment that preserves working context between sessions, coordinates specialized agents, and stores project knowledge through ledgers, handoffs, and analysis tools. It is for people using Claude Code on ongoing or complex software work. Its catalogue entries are the skills, agents, hooks, plugin, and setting that provide its workflows and orchestration.

parcadei/Continuous-Claude-v3 · 3,953 stars · on GitHub

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.

Any agent
npx skills add parcadei/Continuous-Claude-v3 --skill modular-code
Clone the repo
git clone --depth 1 https://github.com/parcadei/Continuous-Claude-v3

Made for: Claude Code.

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 modular-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/parcadei/continuous-claude-v3/modular-code/github.svg)](https://agentmods.dev/skills/parcadei/continuous-claude-v3/modular-code)
Your own site
<a href="https://agentmods.dev/skills/parcadei/continuous-claude-v3/modular-code"><img src="https://agentmods.dev/badge/skills/parcadei/continuous-claude-v3/modular-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for modular-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/parcadei/continuous-claude-v3/modular-code"><img src="https://agentmods.dev/badge/skills/parcadei/continuous-claude-v3/modular-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 698 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Sept 2026
  • Snyk pass 18 Sept 2026
How audits are shown
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.1 $0.00008 $0.00698
Opus 5.5 $0.00003 $0.00279
Sonnet 5.5 $0.00002 $0.00140
Haiku 4.5 $0.00001 $0.00070

Measured 2mo ago against content hash a21a440fe4f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

modular-code 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 2mo ago.

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.

.claude/skills/modular-code/SKILL.md · 88 lines

How it starts

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

Modular Code Organization

Write modular Python code with files sized for maintainability and AI-assisted development.

File Size Guidelines

Lines Status Action
150-500 Optimal Sweet spot for AI code editors and human comprehension
500-1000 Large Look for natural split points
1000-2000 Too large Refactor into focused modules
2000+ Critical Must split - causes tooling issues and cognitive overload

When to Split

Split when ANY of these apply:

  • File exceeds 500 lines
  • Multiple unrelated concerns in same file
  • Scroll fatigue finding functions
  • Tests for the file are hard to organize
  • AI tools truncate or miss context

How to Split

Natural Split Points

  1. By domain concept: auth.py → auth/login.py, auth/tokens.py, auth/permissions.py
  2. By abstraction layer: Separate interface from implementation
  3. By data type: Group operations on related data structures
  4. By I/O boundary: Isolate database, API, file operations

Package Structure

feature/
├── __init__.py      # Keep minimal, just exports
├── core.py          # Main logic (under 500 lines)
├── models.py        # Data structures
├── handlers.py      # I/O and side effects
└── utils.py         # Pure helper functions

DO

  • Use meaningful module names (data_storage.py not utils2.py)
  • Keep __init__.py files minimal or empty
  • Group related functions together
  • Isolate pure functions from side effects
  • Use snake_case for module names

DON'T

  • Split files arbitrarily by line count alone
  • Create single-function modules
  • Over-modularize into "package hell"
  • Use dots or special characters in module names
  • Hide dependencies with "magic" imports

Refactoring Large Files

When splitting an existing large file:

  1. Identify clusters: Find groups of related functions
  2. Extract incrementally: Move one cluster at a time
  3. Update imports: Fix all import statements
  4. Run tests: Verify nothing broke after each move
  5. Document: Update any references to old locations

Read the full file on GitHub · 88 lines

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. 2mo ago First seen · 88 lines · 8 tokens per session scan A a21a440fe4f9

Subscribe to this mod's changes

modular-code is a skill published in the GitHub repository parcadei/Continuous-Claude-v3 (3,953 stars, last pushed 14d ago), licensed MIT. It adds 8 tokens to every session and 698 once invoked, about $0.0000 per session on Opus 5.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-09-03.

Related

modular-code compared with skills from other repositories

modular-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
modular-codeparcadei/Continuous-Claude-v3Skill4.0k14d agoMITA8Claude Code
fizzy-workflowkeskinonur/claude-plugin-fizzySkill310mo agoApache-2.0A57Claude Code
make-skillsergeyklay/.agentsSkill65d agoApache-2.0A80Claude Code, Codex
test-tssergeyklay/.agentsSkill65d agoApache-2.0A139Claude Code, Codex
isolate-clisergeyklay/.agentsSkill65d agoApache-2.0A208Claude Code, Codex
search-websergeyklay/.agentsSkill65d agoApache-2.0A216Claude Code, Codex
monitor-cisergeyklay/.agentsSkill65d agoApache-2.0A181Claude Code, Codex