スキル一覧に戻る
twikus

clean-code

by twikus

1🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: clean-code description: Comprehensive clean code workflow that analyzes codebase, recommends best practices, and applies clean code principles for React, Next.js, and modern tooling. argument-hint: "[-a] [-e] [-s] [-r ] <feature/file>"

<quick_start> Basic usage (analyze and apply clean code principles):

/clean-code auth feature

Auto mode (skip confirmations):

/clean-code -a dashboard

With save (output to .claude/output/clean-code/):

/clean-code -s -a refactor api

What it does:

  1. Scans codebase for issues (React, Next.js, Zustand, TanStack Query)
  2. Loads relevant best practices docs
  3. Applies clean code improvements
  4. Verifies with build and tests
  5. Commits changes </quick_start>
FlagDescription
-aAuto mode: skip confirmations
-eEconomy mode: no subagents, direct tools only
-sSave mode: output to .claude/output/clean-code/
-rResume mode: continue from previous task
--reactForce load React 19 patterns
--nextjsForce load Next.js 15/16 patterns
--zustandForce load Zustand v5 patterns
--queryForce load TanStack Query v5 patterns

<state_variables>

VariableTypeDescription
{task_description}stringWhat to analyze
{task_id}stringKebab-case identifier
{auto_mode}booleanSkip confirmations
{economy_mode}booleanNo subagents
{save_mode}booleanSave outputs
{detected_tech}objectTechnologies found
{issues}arrayIssues found

</state_variables>

<reference_files>

FileWhen Loaded
references/general-clean-code.mdAlways
references/react-clean-code.mdReact detected / --react
references/nextjs-clean-code.mdNext.js detected / --nextjs
references/zustand-best-practices.mdZustand detected / --zustand
references/tanstack-query-best-practices.mdNo data fetching / --query

</reference_files>

<entry_point>

Load steps/step-01-scan.md

</entry_point>

<step_files>

StepFilePurpose
01step-01-scan.mdInit + analyze
02step-02-apply.mdLoad docs + apply
03step-03-verify.mdBuild + commit

</step_files>

<execution_rules>

  • Load one step at a time
  • Use parallel agents in step-01 (unless economy mode)
  • Always run build before completing
  • Follow patterns from reference files exactly </execution_rules>

<success_criteria>

  • Technologies correctly detected (React, Next.js, Zustand, TanStack Query)
  • Issues identified and documented
  • Relevant reference docs loaded
  • Clean code improvements applied
  • Build passes without errors
  • Tests pass (if tests exist)
  • Changes committed with clear message
  • No hacks or shortcuts used </success_criteria>

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です