# gstack Deslop: Find Code Worth Sharing (deslop-shared-libs)

> Finds worthwhile shared-code extractions in recent work and recommends the three that delete the most code net.

- Category: [Refactoring](https://www.myskills.tools/en/categories/refactoring/)
- Source: Community · Garry Tan
- Repository: https://github.com/garrytan/gstack/tree/main/deslop-shared-libs (commit 6237994 · v1.0.0)
- SKILL.md: https://github.com/garrytan/gstack/blob/main/deslop-shared-libs/SKILL.md
- Install command: `npx skills add garrytan/gstack --skill deslop-shared-libs`
- License: MIT
- Compatible with: Claude Code, Codex, Cursor, Copilot
- Permissions: read-repo ✓, write-files ✗, shell ✓, network ✓
- Status: Scan passed
- A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.
- ⚠ Requires gstack.

## Core rule

Recommend an extraction only with at least two verified callers; zero findings is valid, and callers are never invented.

## Execution Phases

1. **Establish the source** — Default to the last 14 UTC days and record the default-branch tip and current-branch state.
2. **Start with recent work** — Focus on actively changing areas and check for work already underway.
3. **Evaluate candidates** — Reuse existing libraries and helpers first, keep any new helper small, and account for the whole net change.
4. **Recommend** — 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)

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

Home: https://www.myskills.tools/en/ · URL: https://www.myskills.tools/en/skills/deslop-shared-libs/
