packlets
Packlets are a nice way to keep your JavaScript codebase somewhat loosely-coupled, without having to separate things into different npm packages.
You follow these 5 rules:
- Packlets live in
./src/packlets/<name>/and the entry point isindex.ts. - Files outside a packlet can only import from packlet’s entry point,
index.ts. - Files inside a packlet may not import its own entry point,
index.ts. - Packlets can import other packlets but cannot create circular dependencies.
- Packlets can only import other packlets and npm packages.
There is an ESLint plugin to enforce these rules.
About packlets
Source: https://github.com/microsoft/rushstack/edit/main/eslint/eslint-plugin-packlets/README.md
Motivation
When building a large application, it's a good idea to organize source files into modules, so that their dependencies can be managed. For example, suppose an application's source files can be grouped as follows:
More from dtinth/agent-skills
discord
Use this skill to send a message over Discord to the operator
19pdd
Skills for Puzzle Driven Development (PDD). Refer to this skill when a project uses PDD or the operator mentions PDD or puzzle-driven development. Use this skill when: (1) Breaking a large feature into incremental deliverables, (2) Writing @todo stub comments to mark unimplemented code, (3) Picking up an existing @todo puzzle to implement, (4) Deciding whether to wrap up a task with a stub or keep working.
17tmux
Use this skill to run background processes or long running processes using tmux.
14wait-for-ci
Use this skill to wait for checks on GitHub Actions to finish on the current pull request
14playwright-testing
Playwright testing. Use this skill to write and run automated tests for web applications using Playwright.
11agent-skills
Use this when: (1) Creating a new project-specific skill to document project patterns, (2) Improving or updating an existing project skill, (3) Writing skill descriptions that will trigger other agents, (4) Organizing skill content for progressive disclosure, or (5) Learning what project-specific skills exist in .claude/skills/. Ensures skills follow project conventions and provide effective progressive disclosure.
10