setup-ts-deep-modules
Enforce TypeScript Package Boundaries
Deep imports expose internal TypeScript package code and weaken architecture. This skill installs dependency-cruiser rules, validates failures, and documents stable entry-point boundaries.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "setup-ts-deep-modules" from https://skillstore.io/skills/mattpocock-setup-ts-deep-modules.md and its manifest at https://skillstore.io/api/skills/mattpocock-setup-ts-deep-modules/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "setup-ts-deep-modules". Configure deep modules for a repository using pnpm and packages under src/packages.
Expected outcome:
- Detected pnpm and the src/packages root.
- Added dependency-cruiser boundary rules and a lint:boundaries script.
- Verified a clean pass, an intentional deep-import failure, and a restored pass.
Using "setup-ts-deep-modules". Merge the rules into a repository that already has dependency-cruiser configuration.
Expected outcome:
Preserved existing rules, added four package-boundary checks, retained current resolver options, and reported the merged validation results.
Using "setup-ts-deep-modules". Document the new package convention for contributors and coding agents.
Expected outcome:
Created concise package guidance covering entry points, private folders, tests, cycle checks, and the validation command. Added a pointer from agent instructions.
Security Audit
Medium RiskAll 48 static findings are false positives caused by JSDoc imports, JavaScript template literals, Markdown formatting, documentation links, and fixed relative TypeScript imports. No prompt injection, data exfiltration, or unsafe path traversal was found. The skill still installs a third-party package and runs repository scripts, creating a legitimate medium execution and supply-chain risk.
Confirmed security concerns (1)
Risk Factors
โก Contains scripts (2)
โ๏ธ External commands (43)
๐ Network access (1)
๐ Filesystem access (2)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/mattpocock-setup-ts-deep-modules/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/mattpocock-setup-ts-deep-modules?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/mattpocock-setup-ts-deep-modules?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/mattpocock-setup-ts-deep-modules/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/mattpocock-setup-ts-deep-modules.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
mattpocock. (2026). setup-ts-deep-modules security audit report (audit version 2) [Author version unspecified]. Skillstore. https://skillstore.io/skills/mattpocock-setup-ts-deep-modules/audits/2BibTeX citation
@techreport{mattpocock-mattpocock-setup-ts-deep-modules-2026,
author = {mattpocock},
title = {setup-ts-deep-modules security audit report (audit version 2)},
institution = {Skillstore},
year = {2026},
number = {2},
url = {https://skillstore.io/skills/mattpocock-setup-ts-deep-modules/audits/2},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "setup-ts-deep-modules security audit report (audit version 2)"
version: "unspecified"
type: report
authors:
- name: "mattpocock"
date-released: "2026-07-12"
url: "https://skillstore.io/skills/mattpocock-setup-ts-deep-modules/audits/2"
identifiers:
- type: other
value: "skillstore:mattpocock-setup-ts-deep-modules:audit:2"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Protect Monorepo Package Internals
Add enforceable entry-point boundaries across TypeScript packages while allowing internal implementation freedom.
Standardize a Growing Codebase
Create a repeatable package layout, validation command, and contributor documentation for a growing repository.
Prevent Fragile Deep Imports
Make tests and application code consume public package interfaces instead of private implementation files.
Try These Prompts
Configure deep module boundaries in this TypeScript repository. Detect the package manager, confirm the packages root, and preserve existing configuration.
Install dependency-cruiser and add entry-point boundary checks to the current validation script. Show every changed file and command result.
Merge deep module rules into the existing dependency-cruiser configuration. Keep current rules, adapt the packages root, and verify all checks.
Audit this TypeScript package structure, enforce entry-point access, test an intentional deep import failure, restore the repository, and document remaining exceptions.
Best Practices
- Review the detected package manager, packages root, and existing configuration before applying changes.
- Keep public entry points small and place implementation details in package subfolders.
- Verify one passing check, one intentional failing deep import, and one restored passing check.
Avoid
- Do not overwrite an existing dependency-cruiser configuration.
- Do not expose entire implementation trees through large barrel files.
- Do not finish while the intentional deep-import violation still passes.
Frequently Asked Questions
What is a deep module in this skill?
Does every package need one index file?
Which package managers are supported?
Will existing dependency-cruiser rules be replaced?
Does the skill enforce package layering?
How does the skill prove the rules work?
Developer Details
Author
mattpocockLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
c47a0d6818048b11e035c26cf0a679adb938020c
Maintenance freshness
7/18/2026
Usage
0 downloads ยท 0 views
File structure
๐ dependency-cruiser.config.cjs
๐ SKILL.md