Back to list
tao3k

code-tools

by tao3k

WIP-designed to bridge the gap between human intent and machine execution. Built on a robust Tri-MCP architecture, it physically separates cognitive planning (The Brain), atomic execution (The Hands), and surgical coding (The Pen) to ensure context hygiene and safety.

5🍴 0📅 Jan 24, 2026

SKILL.md


name: "code_tools" version: "1.0.0" description: "Code search, analysis, and refactoring using AST patterns. Search code structure, analyze modules, and refactor with precision. KEYWORDS: ast, syntax, parse, surgical, replace, transform, refactor, rename, symbol, class, function, method." routing_keywords: [ "code", "search", "find", "analyze", "refactor", "ast", "pattern", "class", "function", "structure", "outline", "rename", "edit", "transform", "tools", "decorators", "replace", "surgical", "syntax", "parse", "symbol", ] authors: ["omni-dev-fusion"] execution_mode: "library" intents:

  • "Search code patterns using AST"
  • "Analyze code structure and decorators"
  • "Refactor and rename symbols"
  • "Find class or function definitions"
  • "Count symbols and lines in codebase" permissions:
  • "filesystem:read_file"
  • "filesystem:list_dir"
  • "filesystem:search"
  • "knowledge:search"

You have loaded the Code Tools Skill.

Scope: Code Search + Analysis + Refactoring

This skill provides AST-based code operations in three categories:

  1. Navigation: Search and explore code structure
  2. Analysis: Analyze code for tools, decorators, lines
  3. Refactoring: Modify code with surgical precision

Tool Categories

ToolDescription
outline_fileGet high-level skeleton of source file
count_symbolsCount classes and functions in file
search_codeSearch AST patterns in a single file
search_directorySearch AST patterns across directory

Analysis (Read) - Static Code Analysis

ToolDescription
find_toolsFind @tool decorated functions
count_linesCount lines in a file

Refactoring (Write) - Code Modification

ToolDescription
structural_replaceReplace patterns in content strings
structural_previewPreview changes (dry-run)
structural_applyApply changes to a file
refactor_repositoryMass refactoring across codebase

What to Use Instead

TaskUse SkillTool
Text search in filesadvanced_toolssearch_project_code (ripgrep)
File I/Ofilesystemread_file, save_file

Pattern Syntax (Navigation & Refactoring)

PatternMeaningExample Match
$NAMEAny single identifierfoo, MyClass
$ARGSAny argument list(a, b, c)
$PARAMSAny parameter list(data, options)
$EXPRAny expressionx + y
$$$Variadic match(a, b, c)

Refactoring-Specific Patterns

PatternMeaningExample Match
$$$Variadic match (refactor)(host, port)
$$$ARGSNamed variadic(x, y, z)
connect($$$)Function call with argsconnect("host", 8080)
class $NAMEClass definitionclass Agent:

Usage Examples

Search Code Structure

# Find all class definitions
search_code("src/", "class $NAME")

# Find all connect() calls
search_directory("lib/", "connect($ARGS)", "**/*.py")

# Get file outline
outline_file("src/client.py", "python")

Analyze Code

# Find @tool decorated functions
find_tools("src/agent/")

# Count lines in file
count_lines("README.md")

Refactor Code (Preview First!)

# Preview changes (safe - no modification)
structural_preview("src/client.py", "old_connect($$$)", "new_connect($$$)")

# Apply after confirming preview
structural_apply("src/client.py", "old_connect($$$)", "new_connect($$$)")

Workflow

1. SEARCH/ANALYZE (Read)
   search_code() or find_tools()
   ↓
2. PREVIEW (For refactoring only)
   structural_preview(path, pattern, replacement)
   ↓
3. REVIEW
   - Check diff output
   - Verify matches are correct
   ↓
4. APPLY (Only for refactoring)
   structural_apply() or refactor_repository()
   ↓
5. VERIFY
   - Run tests
   - Review changes

Best Practices

  1. Always Preview First: Use structural_preview before structural_apply
  2. Use Specific Patterns: old_api($$$) is better than old_api
  3. Navigation for Exploration: Use search_code to understand structure before modifying
  4. Test Small Changes First: Try on a single file before mass refactoring

Key Insights

  • "A good map is worth a thousand lines of code."
  • "Hunt with precision, not with a net."
  • "Preview twice, apply once."
  • "AST patterns find code, not strings."

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

+5

Reviews

💬

Reviews coming soon