clankerguru/openspec-gradle/srcx-extract
Claude Code and agent skill by clankerguru/openspec-gradle
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Extract code into a new function or class. Use when the user says 'extract this' or wants to refactor by pulling out code.
Install
npx vskill@latest install clankerguru/openspec-gradle/srcx-extractSKILL.md
The same SKILL.md was published earlier as clankerguru/openspec-gradle/srcx-extract.
Extract a block of code into a new function or class.
Steps
- Identify the code to extract (file path, start line, end line)
- Run:
./gradlew srcx-extract -PsourceFile=path/File.kt -PstartLine=10 -PendLine=25 -PnewName=doSomething - Review
.opsx/extract.md— it shows:
- The extracted code block
- Detected free variables (potential parameters)
- Suggested function signature
- Call site replacement
- Adjust the suggestion: fix parameter types, return type, visibility
- Apply the refactoring manually based on the suggestion
- Run
./gradlew srcx-usages -Psymbol=doSomethingto verify
Notes
- The task suggests but does NOT auto-apply (extraction needs human judgment)
- Free variable detection is heuristic — review the parameter list
- Works best with Kotlin; Java support is basic
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbuild-logic/.claude/skills/srcx-extract/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/clankerguru/openspec-gradle/srcx-extract)