deslop-shared-libscommit 6237994 · v1.0.0SKILL.md · Refactoring
gstack Deslop: Find Code Worth Sharing
Finds worthwhile shared-code extractions in recent work and recommends the three that delete the most code net.
Requires gstack.
npx skills add garrytan/gstack --skill deslop-shared-libsCommand selected. Copy it manually.
- Permissions
- read-repo
- write-files
- shell
- network
- Compatible with
- Claude Code, Codex, Cursor, Copilot
- GitHub
- 138.5k
- Source
- Community · Garry Tan
- Status
- Scan passed
- License
- MIT
- Category
- Refactoring
Core rule
Recommend an extraction only with at least two verified callers; zero findings is valid, and callers are never invented.
Execution Phases
Phase 01Establish the source
Default to the last 14 UTC days and record the default-branch tip and current-branch state.
Phase 02Start with recent work
Focus on actively changing areas and check for work already underway.
Phase 03Evaluate candidates
Reuse existing libraries and helpers first, keep any new helper small, and account for the whole net change.
Phase 04Recommend
List up to five new ideas and up to three ranked recommendations linking both verified callers.
Permissions (summarised from SKILL.md)
| Capability | Needed | Details |
|---|---|---|
| File writes | Not required | Review only: no file edits, saved reports or temporary files, issues or PRs. |
| Command execution | Limited | Runs Git only through gstack-safe-git and never executes the audited project's code, tests or hooks. |
| Network outbound | Limited | Uses only provider GET APIs for remote metadata and source, never Git transports. |
SKILL.md frontmatter (YAML)
---
name: deslop-shared-libs
version: 1.0.0
description: Find worthwhile shared-code extractions in recent work. (gstack)
allowed-tools:
- Bash
- Read
- Glob
- Grep
triggers:
- find code worth sharing
- shared-code extraction opportunities
---Related skills
A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.