Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

planning

БесплатноЗапускает вложенные скриптыНе проверен

Provides expertise on how to plan for work in this repo

inocan-groupот inocan-group★ 17 звёзд на GitHub7 установок в других каталогах

Об этом скилле

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 tests
    • pnpm test GLOB - runs tests matching the glob pattern
    • pnpm 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 tests
    • pnpm 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 cases to 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 T is the type true
  • AssertFalse<T>
    • tests whether the tested type T is the type false
  • AssertEqual<T,E>
    • tests that the tested type T equals the expected type E
  • AssertExtends<T,E>
    • tests that the tested type T extends the expected type E
  • AssertSameValues<T,E>
    • tests that the tested type T is an array type and every element of E and T are the same but the order in which they arrive does not matter
  • AssertContains<T,E>
    • when the tested type T is a string:
      • this utility will pass when E is also a string and represents a sub-string of the sting literal T
    • when the tested type T is an array then:
      • this utility

In all cases you put the test assertion inside of the Expect utility:

type cases [
    Expect<As
Полный SKILL.md на GitHub

Установить planning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/start-position.ts

FAQ

Что делает скилл planning?

Provides expertise on how to plan for work in this repo

Как установить скилл planning?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл planning запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить planning с