planning
БесплатноЗапускает вложенные скриптыНе проверенProvides expertise on how to plan for work in this repo
Об этом скилле
Overview
This skill provides comprehensive guidance on how to plan a new feature in this repo.
- We always use a Test-Driven Development (TDD) approach
- We emphasize not only runtime tests but also "type tests"
- We track our progress through the phased based work with a LOG file
When to Use Sub-Agents
For complex, multi-phase work, consider delegating to specialized sub-agents:
Project Manager Agent (.claude/agents/project-manager.md)
Delegate planning work when:
- User requests a new feature requiring multiple phases
- Current work would create a 5+ phase plan
- You need specialized planning expertise
- Context is getting large and planning is complex
How to invoke:
await Task({
description: "Create plan for X",
subagent_type: "general-purpose",
prompt: "You are the Project Manager Agent. Create plan for: [requirement]"
});
Phase Executor Agent (.claude/agents/phase-executor.md)
Delegate phase execution when:
- Executing a single phase from an approved plan
- Want to ensure TDD workflow is followed strictly
- Need all quality checks (TODO scan, type tests, etc.)
- Want to preserve context between phases
How to invoke:
await Task({
description: "Execute Phase N",
subagent_type: "general-purpose",
prompt: "You are Phase Executor Agent. Execute Phase N from: [plan file]"
});
See .claude/agents/README.md for detailed sub-agent architecture and usage patterns.
Types of Testing
1. Runtime Tests
Runtime tests verify the actual behavior of code during execution.
When to use:
- Testing function outputs with various inputs
- Verifying error handling and edge cases
- Checking side effects (file I/O, API calls, state mutations)
- Validating business logic and algorithms
- Testing class instance behavior and methods
Tools:
- Test runner: Vitest
- Commands:
pnpm test- runs all runtime testspnpm test GLOB- runs tests matching the glob patternpnpm test:watch- runs tests in watch mode
Example structure:
import { describe, it, expect } from "vitest";
import { prettyPath } from "~/utils";
describe("prettyPath()", () => {
it("should format a path with directory and filename", () => {
const result = prettyPath("/path/to/file.ts");
expect(result).toBe("/path/to/file.ts"); // Expected formatting
});
it("should handle edge case: empty string", () => {
const result = prettyPath("");
expect(result).toBe("");
});
it("should handle edge case: root path", () => {
const result = prettyPath("/");
expect(result).toBe("/");
});
});
2. Type Tests
Type tests verify the type correctness of TypeScript code at design time.
When to use:
- Testing type utility functions (always)
- Verifying generic type constraints work as expected
- Ensuring conditional types resolve correctly
- Testing that complex inferred types are accurate
- Validating discriminated unions and type narrowing
- Checking that function signatures accept/reject correct types
Tools:
- Commands:
pnpm test:types- runs all type testspnpm test:types GLOB- runs type tests matching the glob pattern
Type Test Structure
This section will show you, layer by layer, how to compose and build good type tests.
cases block
All type tests in a given it test block (defined by Vitest) will have a type called cases defined as an array of type tests.
type cases = [
// ... type tests go here
]
Note: our linting rules allow for the name
casesto be defined without being used; this is intentional and a good thing.
Expect<...> wrapper
Every type test will be wrapped by an Expect type utility.
type cases = [
Expect<...>,
Expect<...>,
// ...
]
Available Type Test Assertions
The inferred-types library provides a number of useful assertion utilities you can use to create your tests:
AssertTrue<T>****- tests whether the tested type
Tis the typetrue
- tests whether the tested type
AssertFalse<T>- tests whether the tested type
Tis the typefalse
- tests whether the tested type
AssertEqual<T,E>- tests that the tested type
Tequals the expected typeE
- tests that the tested type
AssertExtends<T,E>- tests that the tested type
Textends the expected typeE
- tests that the tested type
AssertSameValues<T,E>- tests that the tested type
Tis an array type and every element ofEandTare the same but the order in which they arrive does not matter
- tests that the tested type
AssertContains<T,E>- when the tested type
Tis astring:- this utility will pass when
Eis also astringand represents a sub-string of the sting literalT
- this utility will pass when
- when the tested type
Tis an array then:- this utility
- when the tested type
In all cases you put the test assertion inside of the Expect utility:
type cases [
Expect<As
Установить planning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл planning?
Provides expertise on how to plan for work in this repo
Как установить скилл planning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл planning запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic