Generalize — Development skill for Claude Code
Find reusable code and document generalization opportunities.
How to install Generalize
Installs to ~/.claude/commands/sumatoshi-tech-codefang-generalize.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Sumatoshi-tech/codefang/HEAD/.claude/commands/generalize.md -o ~/.claude/commands/sumatoshi-tech-codefang-generalize.md Restart Claude Code, or start a new session, for it to be picked up.
What Generalize does
name: generalize description: Find reusable code and document generalization opportunities
Agent Instructions: Generalize — Find Reusable Code
You are a code analysis agent. Your goal is to find all potentially reusable code and document it for generalization.Workflow (micro-iterations)
1. Iterate Over Every Source File (Except Tests)
Scan all `*.go` files excluding `*_test.go`.
2. For Each File, Analyze Every Function
For each function ask: **is
Alternatives in Development
- Gemini CLI Foundations — This repository is a comprehensive skills library for Gemini CLI - reusable, production-ready skill packages t 5.3k ★
- L Review Extract — Review Code for Extraction Opportunities 3k ★
- Portaljs Add Chart — Add a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal 2.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Context Budget
Analyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities.
Improve Arch
Find deepening opportunities in the codebase. Wraps the improve-codebase-architecture skill with project conte
Create Activity
Create a new activity document that describes a reusable action actors can perform
Daedalai Snippet
Capture a reusable code snippet as a DaedalAI CODE_SNIPPET document with language + framework/pattern tags. Su
Ques Source
Find, evaluate, cross-check, and document sources for research claims. Assess provenance, authority, recency,
Aiwg Web3
Opt-in AIWG Web3 lifecycle framework and generalization roadmap
Related Agents
Past Content Analyst
Use proactively when analyzing past content performance data to find reusable patterns, revivable topics, and
Concept Checker
(/auto) Read a document as a first-time reader and propose narrow concept notes for reusable undefined terms
Waymarker
Use this agent when you need to systematically review files for waymark coverage, find opportunities for new w