Skills DirectoryCurated open-source Skills from GitHub

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-libs
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

  1. Phase 01Establish the source

    Default to the last 14 UTC days and record the default-branch tip and current-branch state.

  2. Phase 02Start with recent work

    Focus on actively changing areas and check for work already underway.

  3. Phase 03Evaluate candidates

    Reuse existing libraries and helpers first, keep any new helper small, and account for the whole net change.

  4. Phase 04Recommend

    List up to five new ideas and up to three ranked recommendations linking both verified callers.

Permissions (summarised from SKILL.md)

CapabilityNeededDetails
File writesNot requiredReview only: no file edits, saved reports or temporary files, issues or PRs.
Command executionLimitedRuns Git only through gstack-safe-git and never executes the audited project's code, tests or hooks.
Network outboundLimitedUses only provider GET APIs for remote metadata and source, never Git transports.

SKILL.md frontmatter (YAML)

SKILL.md frontmatter (YAML)commit 6237994 · v1.0.0
---
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.