Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/PackmindHub/packmindnpx agentmods add commands/packmindhub/packmind/create-new-package-in-monorepoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/packmindhub/packmind/create-new-package-in-monorepo)<a href="https://agentmods.dev/commands/packmindhub/packmind/create-new-package-in-monorepo"><img src="https://agentmods.dev/badge/commands/packmindhub/packmind/create-new-package-in-monorepo/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/packmindhub/packmind/create-new-package-in-monorepo"><img src="https://agentmods.dev/badge/commands/packmindhub/packmind/create-new-package-in-monorepo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00003 | $0.01001 |
| Opus 5.5 | $0.00001 | $0.00400 |
| Sonnet 5.5 | $0.00001 | $0.00200 |
| Haiku 4.5 | $0.00000 | $0.00100 |
Grade A, and why
create-new-package-in-monorepo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create New Package
Create a new buildable TypeScript package in the Packmind monorepo using Nx tools and configure it for use across applications.
When to Use
- Creating a new shared library package for common utilities or domain logic
- Setting up a domain-specific package following DDD architecture
- Establishing internal dependencies for code reuse across apps and packages
- Extracting common code into a reusable module
Context Validation Checkpoints
- What is the package name and its primary responsibility?
- Which packages or applications will consume this package?
- Will the package be used by the API application (requires webpack config)?
- What external dependencies does the package require (e.g., TypeORM, Winston)?
- Are there any special build requirements (e.g., WASM files, assets)?
Recipe Steps
Step 1: Generate Package Scaffold with Nx
Run the Nx generator to create the package structure with TypeScript configs, Jest setup, ESLint config, and project.json.
nx generate @nx/js:library <package-name> \
--directory=packages/<package-name> \
--buildable \
--publishable=false \
--unitTestRunner=jest
Step 2: Configure Package Metadata
Update packages/<package-name>/package.json with the correct name and dependencies. Always use @packmind/ prefix and set "private": true for internal packages.
{
"name": "@packmind/<package-name>",
"version": "0.0.1",
"private": true,
"type": "commonjs",
"main": "./src/index.js",
"types": "./src/index.d.ts",
"dependencies": {
"tslib": "^2.3.0"
}
}
Step 3: Update TypeScript Path Mappings
Add the path alias to tsconfig.base.json (Nx generates it without @packmind/ prefix - fix this). Then regenerate the effective TypeScript config by running node scripts/select-tsconfig.mjs.
{
"compilerOptions": {
"paths": {
"@packmind/<package-name>": ["packages/<package-name>/src/index.ts"]
}
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 142 lines · 3 tokens per session scan A 255ae7577533
create-new-package-in-monorepo is a command published in the GitHub repository PackmindHub/packmind (327 stars, last pushed 20d ago), licensed Apache-2.0. It adds 3 tokens to every session and 1,001 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
create-new-package-in-monorepo compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| create-new-package-in-monorepoPackmindHub/packmind | Command | 327 | 20d ago | Apache-2.0 | A | 3 | Claude Code |
| create-storefabioc-aloha/Alex_Plug_In | Command | 4 | 16d ago | none | A | 13 | GitHub Copilot |
| generate-types-from-supabaseprzeprogramowani/ai-rules-builder | Command | 268 | 9mo ago | AGPL-3.0 | A | 0 | Claude Code |
| coderairmcp-com/mcp-standards | Command | 3 | 12mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 27 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | 3d ago | MIT | A | 26 | Claude Code |