context-aware-task-decomposition

context-aware-task-decomposition is a skill for Claude Code, Codex from ChrisLamDev/hermes-core-skills. It costs 20 tokens per session (345 once invoked), scanned A, original, MIT.

A task-planning skill that adjusts the size of multi-step work to fit the agent’s remaining context window, the amount of information it can handle in one session.

In plain words
What is it for?
Use it for multi-file code generation, large research tasks, cross-module refactors, or work with many independent steps.
Why use it?
Long tasks can run out of room or lose important details. This skill breaks large jobs into smaller sub-tasks when needed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Codex.

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/chrislamdev/hermes-core-skills/context-aware-task-decomposition
Any agent
npx skills add ChrisLamDev/hermes-core-skills --skill context-aware-task-decomposition
Clone the repo
git clone --depth 1 https://github.com/ChrisLamDev/hermes-core-skills

Made for: Claude Code, Codex.

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 context-aware-task-decomposition

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrislamdev/hermes-core-skills/context-aware-task-decomposition.svg)](https://agentmods.dev/skills/chrislamdev/hermes-core-skills/context-aware-task-decomposition)
Your own site
<a href="https://agentmods.dev/skills/chrislamdev/hermes-core-skills/context-aware-task-decomposition"><img src="https://agentmods.dev/badge/skills/chrislamdev/hermes-core-skills/context-aware-task-decomposition.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 345 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.1 $0.00020 $0.00345
Opus 5 $0.00010 $0.00172
Sonnet 5 $0.00004 $0.00069
Haiku 4.5 $0.00002 $0.00034

Measured 5d ago against content hash f74d76a70512, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

context-aware-task-decomposition 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 5d 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.

skills/context-aware-task-decomposition/SKILL.md · 57 lines

What it actually says

Context-Aware Task Decomposition

Self-regulate task size based on context window capacity. When generating multi-step work, estimate if it fits in the remaining context and decompose accordingly.

Decision Flow

Is the task > 10 steps or likely > 2000 lines?
  ├─ Yes: Decompose into sub-tasks, dispatch via delegate_task()
  │       Each sub-task gets its own full context window
  └─ No: Execute directly

When to Decompose

  • Complex code generation (multi-file)
  • Long research with many sources
  • Refactoring across multiple modules
  • Any task with > 5 independent sub-steps

Decomposition Template

## Task: [name]
### Sub-task 1: [specific deliverable]
### Sub-task 2: [specific deliverable]
### Sub-task 3: [specific deliverable]
### Merge & Verify

Each sub-task becomes a delegate_task() call with its own context.

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. 5d ago First seen · 57 lines · 20 tokens per session scan A f74d76a70512

Subscribe to this mod's changes

context-aware-task-decomposition is a skill published in the GitHub repository ChrisLamDev/hermes-core-skills (9 stars, last pushed 2mo ago), licensed MIT. It adds 20 tokens to every session and 345 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

author

Scaffold a conforming AI-layer artifact — a rule, skill, hook, agent, or output style — that already passes the format checks, then verify it. Use when adding any new AI-layer artifact — a shared one under .agents/ or a Claude-only one under .claude/ — so it matches the existing shape instead of drifting.

Ashkaan/contextium · 72 tokens

close

The "wrap" verb of the loop — end the session by writing the journal entry, updating touched project READMEs, committing, and pushing. Auto-invoked as the tail of /spec and /implement (the producer verbs) on clean completion, so "wrap" is not a verb the user types; also runnable directly. Dispatches /implement-audit…

Ashkaan/contextium · 121 tokens

explain

Deep research into a topic or issue — investigate until confident, then present executive summary and root cause analysis. Use when you need to understand WHY.

Ashkaan/contextium · 32 tokens

spec-audit

Adversarial review of a freshly-written or materially-rewritten SPEC, before any code is written. Runs an independent reviewer against the SPEC's design and the spirit-check agent against the user's verbatim ask, in one pass. Auto-fired by /spec; also callable standalone after any SPEC edit. Emits the spec-audit…

Ashkaan/contextium · 77 tokens

debate

Adversarial debate — spawn competing AI agents to argue a question, then synthesize the strongest conclusion. Use when the user says "debate this", "I'm torn between X and Y", "red-team this plan", or "council on this".

Ashkaan/contextium · 56 tokens

implement-audit

Adversarial review of freshly-built code — find what was missed, what's inconsistent, what breaks. The single code reviewer for the loop, and it runs exactly once per session. Auto-fired by /implement; standalone-callable after any substantial ad-hoc change. Emits the implement-audit: commit trailer the git hook…

Ashkaan/contextium · 71 tokens