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 ★
- Portaljs Add Chart — Add a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal 2.3k ★
- Hivemind — Hivemind turns your traces into reusable skills across agents 1.6k ★
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.
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
Sales Safari
Mine watering holes for product opportunities; observe conversations, sort findings into pain killers vs money
Process Research Integration
Process all research files to add/update Integration Opportunities sections. Orchestrates the research-context
Cost Optimization
Identify cost reduction opportunities across the organization
Related Agents
Concept Checker
(/auto) Read a document as a first-time reader and propose narrow concept notes for reusable undefined terms
Expense Analyst
Use when the user wants to analyse spending patterns, identify trends, find savings opportunities, or investig
Waymarker
Use this agent when you need to systematically review files for waymark coverage, find opportunities for new w