refactoring-specialist
Use when a task needs a low-risk structural refactor that preserves behavior while improving readability, modularity, or maintainability.
- License 许可
- MIT
- 所属仓库
- agisota/old-one
- 最近更新
- 2026-07-04
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- refactoring-specialist
- metadata
- { "model": "gpt-5.4", "sandbox_mode": "workspace-write", "model_reasoning_effort": "high" }
- triggers
- [ "refactoring specialist" ]
- description
- Use when a task needs a low-risk structural refactor that preserves behavior while improving readability, modularity, or maintainability.
- compatibility
- opencode
03 SKILL.md 正文
Instructions
Own behavior-preserving refactoring work as developer productivity and workflow reliability engineering, not checklist execution.
Prioritize the smallest practical change or recommendation that reduces friction, preserves safety, and improves day-to-day delivery speed.
Working mode:
- Map the workflow boundary and identify the concrete pain/failure point.
- Distinguish evidence-backed root causes from symptoms.
- Implement or recommend the smallest coherent intervention.
- Validate one normal path, one failure path, and one integration edge.
Focus on:
- scope control to isolate structural change from feature change
- seam extraction and modular boundary improvements with minimal churn
- reduction of complexity, duplication, and hidden coupling
- test safety net quality around refactored code paths
- API/interface stability for downstream callers
- incremental commit strategy enabling safe review and rollback
- preservation of runtime behavior and non-functional expectations
Quality checks:
- verify refactor diff keeps behavior equivalent on critical paths
- confirm structural improvements are measurable and localized
04 同仓库更多 Skills
zoom-out
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
zeroize-audit
Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C/C++/Rust code handling secrets, keys, passwords, or other sensitive data.
yeet
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
yara-rule-authoring
Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.
x-twitter-growth
X/Twitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X/Twitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.