dep-refs
/dep-refs
Use when the agent needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing.
- Author
- HaizhuAI ↗
- Repository
- Zkali ↗
- Licence
- Apache-2.0
- Last repository change
- 08.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Use when the agent needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing.
Original author description
Use when the agent needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing.
How it works
- Workflow
- JSON Mode
- Interpreting Results
SKILL.md preview
--- name: dep-refs description: Use when the agent needs to inspect TypeScript export references in the z-code workspace, list exports from a file, verify whether an export is unused before deletion, investigate who imports a symbol during refactors, or combine pnpm knip unused-export results with pnpm dep:refs symbol-level reference tracing. disable-model-invocation: true --- # Dep Refs Use the repository's `pnpm dep:refs` CLI to answer symbol-level questions before changing or deleting TypeScript exports. Run commands from the z-code repository root. ## Workflow Start broad when deleting code: ```bash pnpm knip ``` Use `knip` to find likely unused exports, then inspect any risky or unclear export with `dep:refs`: ```bash pnpm dep:refs packages/services/src/bots/botsService.ts:createBotsService ``` List all exports in a file when the exact symbol name is unknown: ```bash pnpm dep:refs --list-exports packages/services/src/bots/botsService.ts ``` Use scoped scans for fast exploration only when the scope is intentionally limited: ```bash pnpm dep:refs --scope packages/services packages/services/src/bots/botsService.ts:createBotsService ``` Before claiming an export is safe to delete, prefer an unscoped `dep:refs` run so cross-package callers are not missed. ## JSON Mode Use silent pnpm mode for machine-readable output, because normal `pnpm` output includes extra banner lines: ```bash pnpm -s dep:refs packages/services/src/bots/botsService.ts:createBotsService --json | jq . ``` Use JSON when summarizing many symbols, feeding results to `jq`, or comparing `references` and `reExports` counts programmatically. ## Interpreting Results Treat `References (0)` and `Re-exports (0)` as "no static references found", not as proof that no dynamic usage exists. The script does not detect `dynamic import()` paths or string-based references. If a symbol only appears under `Re-exports`, trace the outward barrel path before deleting. A re-export can still be part of the public surface even when there are no direct internal imports. For refactors, report concrete callers with file and line from the CLI output, then decide whether to update callers, preserve the export, or delete it.
Files in this package (2)
- SKILL.md 2 KB
- agents/openai.yaml 1 KB
Versions
The database has no other skills named dep-refs.
Database snapshot: 13.11.2026 · package version a6c96a2c0d79 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100knip
Find and remove unused files, dependencies, and exports in JavaScript/TypeScript projects with Knip. Use when someone asks to "find unused code", "clean up dependencies", "remove dead code", "find unused exports", "Knip", "reduce bundle size by removing unused files", or "audit… - 100knip
Run Knip to find unused files, dependencies, exports and types in TypeScript and JavaScript projects. TRIGGER WHEN: cleaning up TypeScript/JavaScript dead code, finding unused npm dependencies or exports, or configuring knip.json/knip.ts. DO NOT TRIGGER WHEN: the target is a… - 100knip
Run Knip to find unused files, dependencies, exports and types in TypeScript and JavaScript projects. TRIGGER WHEN: cleaning up TypeScript/JavaScript dead code, finding unused npm dependencies or exports, or configuring knip.json/knip.ts. DO NOT TRIGGER WHEN: the target is a… - 90skif
Lint the dependencies of JavaScript and TypeScript monorepos with skif: workspace and manifest rules, version and catalog policies, and unused or unlisted dependencies, files and exports, with format-preserving fixes. Use when a repository has a skif.toml or runs skif in CI or… - 100dead
Detect and remove unused code across Go and web. USE WHEN diff is substantive (>30 LoC), after implementing a feature, when /go-strict requests dead-code audit, when Stop hook flags Cleanup-opportunities, or when user asks 'is anything unused' or 'clean up dead code'. Runs `mise… - 100knip-deadcode
Knip dead code detection best practices for JavaScript and TypeScript projects. Use when configuring Knip, analyzing unused code, setting up CI integration, or cleaning up codebases. Triggers on knip.json, dead code, unused exports, unused dependencies, bundle optimization.