Sumatoshi-tech

Generalize — Development skill for Claude Code

Development community

Find reusable code and document generalization opportunities.

How to install Generalize

Installs to ~/.claude/commands/sumatoshi-tech-codefang-generalize.md

Terminal
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 Repository