Command Palette

Search for a command to run...

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

planning-framework

БесплатноБез исполняемых скриптовНе проверен

Apply structured thinking before coding. Use when: starting new features, making architectural decisions, refactoring large components, or evaluating…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub18 установок в других каталогах

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

Planning Framework

When to Use

Before starting ANY significant coding task:

  • New features (> 50 lines of code)
  • Refactoring existing components
  • Architectural changes
  • Debugging complex issues

Musk's 5-Step Algorithm

Step 1: Make Requirements Less Dumb

Question everything:

  • Who requested this feature? Why?
  • What problem does it actually solve?
  • Is there a simpler way to achieve the same outcome?
  • What happens if we don't build this?

Portfolio Buddy 2 Example:

Request: "Add sortable columns to metrics table"

Questions:

  • Why? Users want to find best/worst performing strategies quickly
  • Simpler solution? Just default sort by Sharpe Ratio (most important metric)
  • Alternative? Add "Top 3" and "Bottom 3" highlight sections

Decision: Implemented full multi-column sorting via useSorting hook because:

  • Different users care about different metrics (Sharpe vs Sortino vs Max DD)
  • Sorting is O(n log n) - negligible for <100 strategies
  • Reusable hook can be used in future tables

Step 2: Delete the Part or Process

What can we eliminate?

  • Remove features that serve no clear purpose
  • Cut unnecessary steps in workflows
  • Simplify data structures
  • Delete unused dependencies

Rule: If you don't add back 10% of what you deleted, you didn't delete enough.

Portfolio Buddy 2 Example:

Discovery: Recharts library (11.5KB) installed but never imported

Questions:

  • Is it used anywhere? NO - search reveals zero imports
  • Why was it installed? Probably initial plan, switched to Chart.js
  • Can we delete it? YES - nothing depends on it

Action: npm uninstall recharts (saves 11.5KB in bundle)

Result: Cleaner dependency tree, faster installs, smaller bundle

Step 3: Simplify or Optimize

Only after deleting:

  • Simplify remaining code
  • Extract reusable functions
  • Improve type safety
  • Reduce complexity

Portfolio Buddy 2 Example:

Problem: PortfolioSection.tsx is 591 lines (3x the 200-line limit)

Before Optimization:

function PortfolioSection() {
  // 50 lines of contract multiplier logic
  // 40 lines of date filtering logic
  // 100 lines of Chart.js configuration
  // 80 lines of statistics calculations
  // 300+ lines of JSX rendering
}

After Simplification:

// Extract hooks
const portfolio = usePortfolio(files, dateRange)
const contracts = useContractMultipliers(strategies)

// Extract components
<ContractControls {...contracts} />
<EquityChartSection data={portfolio.equity} />
<PortfolioStats metrics={portfolio.metrics} />

Result: Main component < 100 lines, logic encapsulated, reusable

Step 4: Accelerate Cycle Time

  • Reduce build/test time
  • Improve developer experience
  • Add helpful error messages
  • Optimize feedback loops

Portfolio Buddy 2 Example:

Before: Create React App build time: ~30 seconds

Action: Migrated to Vite

After: Vite build time: ~2 seconds (15x faster)

Impact: Developer can iterate 15x more per hour

Step 5: Automate

Last step only - automate what's proven necessary.

Portfolio Buddy 2 Example:

Don't automate yet: CI/CD pipeline

  • Manual Cloudflare deployments work fine for now
  • Only deploying 2-3x per month
  • Setting up GitHub Actions would take 2-4 hours
  • Wait until deployment frequency increases

Should automate: TypeScript checking on commit

  • Would catch any type violations before merge
  • Git pre-commit hook: tsc --noEmit
  • Saves debugging time later

ICE Scoring Framework

Evaluate solutions using:

  • Impact: How much does this move the needle? (1-10)
  • Confidence: How certain are we this will work? (1-10)
  • Ease: How simple to implement? (1-10)

ICE Score = (Impact × Confidence × Ease) / 10

Portfolio Buddy 2 Examples

Example 1: Error Boundaries (High Priority)

Feature: Add React error boundaries around risky components

  • Impact: 7 (prevents full app crashes from component errors)
  • Confidence: 9 (standard React pattern, well-documented)
  • Ease: 8 (wrapper component + fallback UI, ~50 lines)
  • ICE Score: (7 × 9 × 8) / 10 = 50.4 → HIGH PRIORITY

Decision: Should implement soon. Quick win, high impact.

Example 2: Export to Excel (Medium-High Priority)

Feature: Add Excel export button for metrics table

  • Impact: 8 (users explicitly requested it)
  • Confidence: 8 (libraries like xlsx exist, proven solution)
  • Ease: 7 (format data, generate file, trigger download)
  • ICE Score: (8 × 8 × 7) / 10 = 44.8 → HIGH PRIORITY

Decision: Worth implementing. Clear user value, reasonable effort.

Example 3: Refactor PortfolioSection (Medium Priority)

Feature: Split 591-line component into smaller pieces

  • Impact: 6 (improves maintainability, no user-facing change)
  • Confidence: 8 (clear extract
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

skill-report.json

FAQ

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

Apply structured thinking before coding. Use when: starting new features, making architectural decisions, refactoring large components, or evaluating implementation approaches. Includes Musk's 5-step algorithm and ICE scoring framework.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить planning-framework с