@pratikpsl/agent-skills 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ Options:
|
|
|
80
80
|
| `default` | `templates/default/` | Universal single-file agent instructions, cross-OS hardlinked |
|
|
81
81
|
| `dotnet` | `templates/dotnet/` | .NET/C# skills, architecture & developer agents, memory |
|
|
82
82
|
| `react` | `templates/react/` | React & TypeScript skills, frontend testing, developer agent |
|
|
83
|
-
| `shared` | `templates/shared/` | Base operating contract, core skills (standards, security), review agents |
|
|
83
|
+
| `shared` | `templates/shared/` | Base operating contract, core skills (principles, standards, security), review agents |
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pratikpsl/agent-skills",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "CLI to scaffold and manage AI agent skills across projects — like shadcn/ui, but for Cursor, Claude, Codex, Copilot, Antigravity, and more",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agent-skills": "dist/bin/agent-skills.js"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"build": "tsc",
|
|
48
48
|
"test": "vitest run",
|
|
49
49
|
"test:watch": "vitest",
|
|
50
|
-
"dry-run": "
|
|
50
|
+
"dry-run": "bun run build && bun pm pack --dry-run"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"commander": "^15.0.0"
|
|
@@ -5,22 +5,23 @@ description: Code review, correctness, security, and standards verification.
|
|
|
5
5
|
|
|
6
6
|
# Code Reviewer Guidance
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Universal review guidance for AI agents and human reviewers across all stacks. Security, standards, and core principles remain invariant across frameworks.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
10
|
+
## Core References
|
|
11
|
+
- **Principles**: Adhere strictly to `AgentSkills/skills/principles/SKILL.md`.
|
|
12
|
+
- **Standards**: Adhere strictly to `AgentSkills/skills/standards/SKILL.md`.
|
|
13
|
+
- **Security**: Adhere strictly to `AgentSkills/skills/security/SKILL.md`.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
- [ ]
|
|
16
|
-
- [ ]
|
|
17
|
-
- [ ]
|
|
15
|
+
## Verification & Automated Checks
|
|
16
|
+
- [ ] **Clean Build**
|
|
17
|
+
- [ ] **Zero Lint Errors**
|
|
18
|
+
- [ ] **Tests Pass**
|
|
19
|
+
- [ ] **Test Robustness**
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
- [ ]
|
|
21
|
-
- [ ]
|
|
22
|
-
- [ ]
|
|
21
|
+
## Standards & Skill Compliance
|
|
22
|
+
- [ ] **Principles**: `AgentSkills/skills/principles/SKILL.md`
|
|
23
|
+
- [ ] **Standards**: `AgentSkills/skills/standards/SKILL.md`
|
|
24
|
+
- [ ] **Security**: `AgentSkills/skills/security/SKILL.md`
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
- [ ]
|
|
26
|
-
- [ ] Tests pass and verify both success scenarios and failure/edge-case paths.
|
|
26
|
+
## Memory & Learning Loop
|
|
27
|
+
- [ ] **Agent Memory**: `AgentSkills/memory/index.md`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: principles
|
|
3
|
+
description: Core software engineering principles, simplicity ladder, surgical changes, and standards.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Core Principles
|
|
7
|
+
|
|
8
|
+
Foundational software engineering principles and decision rules for AI agents and human contributors.
|
|
9
|
+
|
|
10
|
+
## The Simplicity Ladder
|
|
11
|
+
Before writing any code, stop at the first rung that holds:
|
|
12
|
+
|
|
13
|
+
1. **Does this need to be built at all?** (YAGNI)
|
|
14
|
+
2. **Does it already exist in this codebase?** Reuse the helper, util, or pattern that is already here; do not rewrite it.
|
|
15
|
+
3. **Does the standard library already do this?** Use it.
|
|
16
|
+
4. **Does a native platform feature cover it?** Use it.
|
|
17
|
+
5. **Does an already-installed dependency solve it?** Use it.
|
|
18
|
+
6. **Can this be one line and simple?** Make it one.
|
|
19
|
+
7. **Only then:** write the minimum code that works.
|
|
20
|
+
|
|
21
|
+
The ladder runs after you understand the problem, not instead of it: read the task and the code it touches, trace the real flow end-to-end, then climb.
|
|
22
|
+
|
|
23
|
+
## Root Cause Over Symptom
|
|
24
|
+
Bug fix = root cause, not symptom. A bug report names a symptom. Grep every caller of the function you touch and fix the shared function once — one guard there is a smaller diff than one per caller, and patching only the path the ticket names leaves sibling callers still broken.
|
|
25
|
+
|
|
26
|
+
## Foundational Principles
|
|
27
|
+
- **Think Before Coding**: Thoroughly understand requirements. If ambiguous, ask before guessing.
|
|
28
|
+
- **Surgical Changes**: Make the smallest change that satisfies the request; touch only what is explicitly required.
|
|
29
|
+
- **Simplicity First (KISS / YAGNI)**: Favor simple, clear, maintainable solutions over clever abstractions. Do not add unrequested features.
|
|
30
|
+
- **Zero-Error Builds**: Every change must compile cleanly and pass existing and newly added tests.
|
|
31
|
+
- **Standards & Security**: Adhere strictly to `AgentSkills/skills/standards/SKILL.md` and `AgentSkills/skills/security/SKILL.md`.
|
|
@@ -1,24 +1,28 @@
|
|
|
1
|
-
# Agent Instructions
|
|
1
|
+
# Agent & Developer Instructions
|
|
2
|
+
|
|
3
|
+
> Operating instructions and engineering guidelines for AI agents and human contributors.
|
|
2
4
|
|
|
3
5
|
## Operating Contract
|
|
4
|
-
Always follow `AgentSkills/OPERATING.md` before making changes.
|
|
6
|
+
Always follow `AgentSkills/OPERATING.md` before making changes. Review relevant agent personas in `AgentSkills/agents/` and skills in `AgentSkills/skills/`.
|
|
5
7
|
|
|
6
8
|
## Goal
|
|
7
|
-
Implement
|
|
8
|
-
minimizing the diff, following the project's own architecture and conventions.
|
|
9
|
+
Implement requested changes with production-quality code, preserving existing behavior and
|
|
10
|
+
minimizing the diff, following the project's own architecture, standards, and conventions.
|
|
9
11
|
|
|
10
12
|
## Core Principles
|
|
13
|
+
- **Core Principles**: Adhere strictly to `AgentSkills/skills/principles/SKILL.md`.
|
|
14
|
+
- **Standards**: Adhere strictly to `AgentSkills/skills/standards/SKILL.md`.
|
|
15
|
+
- **Security**: Adhere strictly to `AgentSkills/skills/security/SKILL.md`.
|
|
11
16
|
- **Think Before Coding**: Thoroughly understand requirements. If ambiguous, ask before guessing.
|
|
12
17
|
- **Surgical Changes**: Make the smallest change that satisfies the request; touch only what is explicitly required.
|
|
13
18
|
- **Simplicity First (KISS / YAGNI)**: Favor simple, clear, maintainable solutions over clever abstractions. Do not add unrequested features.
|
|
14
19
|
- **Zero-Error Builds**: Every change must compile cleanly and pass existing and newly added tests.
|
|
15
|
-
- **Standards & Security**: Adhere strictly to `AgentSkills/skills/standards/SKILL.md` and `AgentSkills/skills/security/SKILL.md`.
|
|
16
20
|
|
|
17
21
|
## Definition of Done
|
|
18
22
|
- Builds cleanly and all tests pass without errors or warnings.
|
|
19
23
|
- No debug code, dead code, unused imports, or temporary files left behind.
|
|
20
24
|
- Changes are minimal, focused, covered by tests, and easy to review.
|
|
21
25
|
|
|
22
|
-
## Agent Memory
|
|
26
|
+
## Agent & Contributor Memory
|
|
23
27
|
- Read `AgentSkills/memory/index.md` at the start of every task (create if missing); load only relevant domain lessons.
|
|
24
|
-
- When a mistake is corrected or a durable rule discovered, record an actionable lesson in `AgentSkills/memory/lessons/<domain>.md` (create if missing) and update `index.md`.
|
|
28
|
+
- When a mistake is corrected or a durable rule discovered, record an actionable lesson in `AgentSkills/memory/lessons/<domain>.md` (create if missing) and update `index.md`.
|