feature-slicing

feature-slicing is a skill for Claude Code, Codex from hamza-ali-shahjahan/hamzaish. It costs 65 tokens per session (952 once invoked), scanned A, original, MIT.

A method for breaking a larger goal into small feature slices, where each slice has a named evaluation and an end-to-end test.

In plain words
What is it for?
Use it after setting a goal and before writing a detailed specification to select features that can be demonstrated and verified.
Why use it?
It prevents choosing work that cannot be checked clearly or tested from start to finish.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after setting a goal and before writing a detailed specification to select features that can be demonstrated and verified.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamza-ali-shahjahan/hamzaish/feature-slicing
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 hamza-ali-shahjahan/hamzaish --skill feature-slicing
Clone the repo
git clone --depth 1 https://github.com/hamza-ali-shahjahan/hamzaish

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 feature-slicing

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/feature-slicing/github.svg)](https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/feature-slicing)
Your own site
<a href="https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/feature-slicing"><img src="https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/feature-slicing/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 feature-slicing

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamza-ali-shahjahan/hamzaish/feature-slicing"><img src="https://agentmods.dev/badge/skills/hamza-ali-shahjahan/hamzaish/feature-slicing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 952 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.
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.00065 $0.00952
Opus 5.5 $0.00026 $0.00381
Sonnet 5.5 $0.00013 $0.00190
Haiku 4.5 $0.00006 $0.00095

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

Security

Grade A, and why

feature-slicing 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 3mo 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.

factory/skills/feature-slicing/SKILL.md · 45 lines

How it starts

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

/feature-slicing

Usage: /feature-slicing <the goal, or what "done" looks like>

A feature you can't evaluate is a guess. A feature you can't test end-to-end is a hope. This skill turns a goal into a short list of vertical slices — each a thin, shippable piece of the goal — and keeps only the slices that come with a way to prove them. It runs after the goal is pinned (/write-a-goal, or a one-line acceptance) and before /spec, so the spec describes provable features, not a wishlist.

The rule

If you can't name the eval and the end-to-end test for a slice, it doesn't get built yet.

That's the whole discipline. A slice with no eval is either too vague (sharpen it) or not actually part of the goal (drop it). The selection gate is provability, not enthusiasm.

The method

  1. Cut vertically, not by layer. A slice is a thin end-to-end thing a user can actually do — not "the database layer." Aim for the smallest slice that moves the goal's metric.
  2. For each candidate slice, write three things up front:
    • Eval — the measurable check that says this slice meets its bar. Tie it to the goal's metric where you can (reuse the numbers from /write-a-goal). Deterministic where possible; an LLM-judge rubric only when the output is genuinely subjective. This is the eval the build is written against, and it joins the project's eval harness.
    • End-to-end test — the real user journey that proves it works in the running app, start to finish (not a unit test of one function). For UI, a browser path; for an API, a request→response contract.
    • Tracking — how we'll see real users use it: for a new screen/tab/mode, a virtual page_view path; for a new interaction, an event name + low-cardinality params; or an explicit "not worth tracking — <why>". Deciding is mandatory, tracking isn't — but a slice whose usage question ("did anyone touch this?") has no answer planned is instrumentation debt the founder pays later (see /user-analytics Recipe F). "Events fire" joins the slice's e2e check.
  3. Apply the selection gate. Keep a slice only if both the eval and the e2e test are defined and runnable. If either is missing: sharpen the slice until they exist, or defer it (write down why) — don't smuggle an unprovable feature into the spec.
  4. Order by risk-and-value. Sequence the kept slices riskiest/highest-value first, so the goal's metric moves early and a dead end is found cheap.
  5. Hand off. Output the selected slices, each with its eval + e2e test, as the input to /spec → /plan. In the per-task loop, the eval and e2e test are written first (TDD) and are the slice's acceptance gate.

Read the full file on GitHub · 45 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. 3mo ago First seen · 45 lines · 65 tokens per session scan A 7b783ef20c0c

Subscribe to this mod's changes

feature-slicing is a skill published in the GitHub repository hamza-ali-shahjahan/hamzaish (11 stars, last pushed 1mo ago), licensed MIT. It adds 65 tokens to every session and 952 once invoked, about $0.0003 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

feature-slicing compared with skills from other repositories

feature-slicing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
feature-slicinghamza-ali-shahjahan/hamzaishSkill111mo agoMITA65Claude Code, Codex
eval-dataset-designbojieli/ai-agent-bookSkill61k2d agoApache-2.0A138Claude Code, Codex
verify-omnigentomnigent-ai/omnigentSkill12ktodayApache-2.0A100Claude Code, Codex
test-masterJeffallan/claude-skillsSkill13k2d agoMITA104Claude Code
dogfoodcallstack/agent-deviceSkill5.6ktodayMITA55Claude Code
cua-driverdavidondrej/skillsSkill4.4k6d agoMITA68Claude Code, Codex
test-generatorrshankras/claude-code-apple-skillsSkill92424d agoMITA33Claude Code