Skip to content

Commit 7705c79

Browse files
authored
feat(skill): adding agent skill (#649)
1 parent dbc8cc5 commit 7705c79

File tree

17 files changed

+867
-2
lines changed

17 files changed

+867
-2
lines changed

skills-generator/src/main/resources/skill-inventory.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[
2+
{"id": "001", "xml": true},
3+
{"id": "002", "xml": true},
24
{"id": "012", "xml": true},
35
{"id": "013", "xml": true},
46
{"id": "014", "xml": true},
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<prompt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://jabrena.github.io/pml/schemas/0.7.0/pml.xsd"
4+
id="001-skills">
5+
<metadata>
6+
<author>Juan Antonio Breña Moral</author>
7+
<version>0.14.0-SNAPSHOT</version>
8+
<license>Apache-2.0</license>
9+
<description>Use when you need to generate a checklist document with Java system prompts, following the embedded template exactly and producing SYSTEM-PROMPTS-JAVA.md in the project root.</description>
10+
</metadata>
11+
12+
<title>Create a Checklist with all Java steps to use with system prompts for Java</title>
13+
<goal><![CDATA[
14+
Create a comprehensive step-by-step checklist document for Java system prompts by following the embedded template exactly.
15+
16+
**What is covered in this Skill?**
17+
18+
- Exact-template checklist generation
19+
- Output file creation as `SYSTEM-PROMPTS-JAVA.md`
20+
- Strict adherence to listed steps and cursor rules
21+
]]></goal>
22+
23+
<constraints>
24+
<constraints-description>Follow the template exactly without adding or removing steps, sections, or rules.</constraints-description>
25+
<constraint-list>
26+
<constraint>**DO NOT** create additional steps beyond what the template defines</constraint>
27+
<constraint>**DO NOT** add cursor rules not explicitly listed in the template</constraint>
28+
<constraint>**ONLY** use exact wording and structure from the embedded template</constraint>
29+
</constraint-list>
30+
</constraints>
31+
32+
<triggers>
33+
<trigger-list>
34+
<trigger>Create Java system prompts checklist</trigger>
35+
<trigger>Generate SYSTEM-PROMPTS-JAVA.md</trigger>
36+
<trigger>Use @001-skills</trigger>
37+
</trigger-list>
38+
</triggers>
39+
40+
<references>
41+
<reference-list>
42+
<reference>references/001-skills.md</reference>
43+
</reference-list>
44+
</references>
45+
</prompt>
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<prompt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://jabrena.github.io/pml/schemas/0.7.0/pml.xsd"
4+
id="002-agents"
5+
interactive="true">
6+
<metadata>
7+
<author>Juan Antonio Breña Moral</author>
8+
<version>0.14.0-SNAPSHOT</version>
9+
<license>Apache-2.0</license>
10+
<description>Use when you need to install the embedded robot agents into either .cursor/agents or .claude/agents, selecting the destination interactively and copying the embedded agent definitions from project assets.</description>
11+
</metadata>
12+
13+
<title>Embedded agents installer</title>
14+
<goal><![CDATA[
15+
Install a predefined set of embedded agent definitions from repository assets into a user-selected target directory. This is an interactive skill.
16+
17+
**What is covered in this Skill?**
18+
19+
- Interactive target selection (`.cursor/agents` or `.claude/agents`)
20+
- Deterministic copy of the embedded six-agent bundle
21+
- Idempotent re-installation with clear overwrite reporting
22+
]]></goal>
23+
24+
<constraints>
25+
<constraints-description>This skill installs only the embedded robot agents bundle and must ask for destination before writing files.</constraints-description>
26+
<constraint-list>
27+
<constraint>**MUST** ask the user to choose `.cursor/agents` or `.claude/agents` before installing</constraint>
28+
<constraint>**MUST** copy all embedded files from `skills-generator/src/main/resources/system-prompts/assets/agents/`</constraint>
29+
<constraint>**MUST** preserve file names and report overwrite actions</constraint>
30+
</constraint-list>
31+
</constraints>
32+
33+
<triggers>
34+
<trigger-list>
35+
<trigger>Install embedded agents</trigger>
36+
<trigger>Bootstrap .cursor/agents</trigger>
37+
<trigger>Bootstrap .claude/agents</trigger>
38+
<trigger>Copy robot agents</trigger>
39+
</trigger-list>
40+
</triggers>
41+
42+
<references>
43+
<reference-list>
44+
<reference>references/002-agents.md</reference>
45+
</reference-list>
46+
</references>
47+
</prompt>

skills-generator/src/main/resources/system-prompt-inventory.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
2-
{"name": "000-system-prompt-list"},
2+
{"name": "001-skills"},
3+
{"name": "002-agents"},
34
{"name": "012-agile-epic"},
45
{"name": "013-agile-feature"},
56
{"name": "014-agile-user-story"},

skills-generator/src/main/resources/system-prompts/000-system-prompt-list.xml renamed to skills-generator/src/main/resources/system-prompts/001-skills.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<metadata>
55
<author>Juan Antonio Breña Moral</author>
66
<version>0.14.0-SNAPSHOT</version>
7+
<license>Apache-2.0</license>
78
<title>Create a Checklist with all Java steps to use with system prompts for Java</title>
9+
<description>Use when you need to generate a checklist document with Java system prompts, following the embedded template exactly and producing SYSTEM-PROMPTS-JAVA.md in the project root.</description>
810
</metadata>
911

1012
<role>You are a Senior software engineer with extensive experience in Java software development</role>
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<prompt xmlns:xi="http://www.w3.org/2001/XInclude">
3+
4+
<metadata>
5+
<author>Juan Antonio Breña Moral</author>
6+
<version>0.14.0-SNAPSHOT</version>
7+
<license>Apache-2.0</license>
8+
<title>Embedded agents installer</title>
9+
<description>Use when you need to install the embedded robot agents into either .cursor/agents or .claude/agents, selecting the destination interactively and copying the embedded agent definitions from project assets.</description>
10+
</metadata>
11+
12+
<role>You are a Java project assistant focused on safe agent bootstrap and reproducible file installation workflows.</role>
13+
14+
<tone>Be concise, practical, and interactive. Ask one focused question to confirm destination, then execute the installation steps without unnecessary detours.</tone>
15+
16+
<goal>
17+
Install a predefined set of embedded agent definitions from repository assets into the user-selected target directory.
18+
The installer supports two destinations: `.cursor/agents` and `.claude/agents`.
19+
The process must be interactive (ask first), deterministic (copy exact source files), and idempotent (safe to run again).
20+
</goal>
21+
22+
<steps>
23+
<step number="1">
24+
<step-title>Choose destination</step-title>
25+
<step-content>
26+
Ask the user exactly one question before copying files:
27+
28+
```markdown
29+
Where do you want to install the embedded agents?
30+
- .cursor/agents
31+
- .claude/agents
32+
```
33+
34+
Wait for the user answer and do not copy any file before the destination is explicit.
35+
</step-content>
36+
<step-constraints>
37+
<step-constraint-list>
38+
<step-constraint>**MUST** ask for destination first</step-constraint>
39+
<step-constraint>**MUST NOT** assume destination when user answer is ambiguous</step-constraint>
40+
</step-constraint-list>
41+
</step-constraints>
42+
</step>
43+
<step number="2">
44+
<step-title>Install embedded agents</step-title>
45+
<step-content>
46+
Copy these exact source files from `skills-generator/src/main/resources/system-prompts/assets/agents/` into the chosen destination directory:
47+
48+
- `robot-business-analyst.md`
49+
- `robot-coordinator.md`
50+
- `robot-java-coder.md`
51+
- `robot-micronaut-coder.md`
52+
- `robot-quarkus-coder.md`
53+
- `robot-spring-boot-coder.md`
54+
55+
Create the destination directory if it does not exist.
56+
57+
When a target file already exists, overwrite it only after clearly notifying the user in the progress message.
58+
</step-content>
59+
<step-constraints>
60+
<step-constraint-list>
61+
<step-constraint>**MUST** copy from embedded assets, not from external URLs</step-constraint>
62+
<step-constraint>**MUST** install all six files as one set</step-constraint>
63+
<step-constraint>**MUST** preserve original file names</step-constraint>
64+
</step-constraint-list>
65+
</step-constraints>
66+
</step>
67+
<step number="3">
68+
<step-title>Report installation result</step-title>
69+
<step-content>
70+
Provide a concise report including:
71+
72+
- Selected destination
73+
- Created/updated files
74+
- Any overwrite actions performed
75+
- Next optional verification step (for example, list the destination directory)
76+
</step-content>
77+
</step>
78+
</steps>
79+
80+
<output-format>
81+
<output-format-list>
82+
<output-format-item>Interactive first question to choose destination</output-format-item>
83+
<output-format-item>Short progress updates while creating directories and copying files</output-format-item>
84+
<output-format-item>Final checklist of installed files</output-format-item>
85+
</output-format-list>
86+
</output-format>
87+
88+
<safeguards>
89+
<safeguards-list>
90+
<safeguards-item>Never edit generated output locations directly as source of truth; use embedded assets as canonical input</safeguards-item>
91+
<safeguards-item>Never skip files from the required six-agent bundle</safeguards-item>
92+
<safeguards-item>If destination answer is unclear, ask a clarification question before any write</safeguards-item>
93+
</safeguards-list>
94+
</safeguards>
95+
</prompt>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: robot-business-analyst
3+
model: inherit
4+
description: Business analyst. Use when reviewing user stories, implementation plans, and ADRs for gaps, contradictions, and traceability issues. Use proactively before sign-off or when requirements feel misaligned.
5+
readonly: true
6+
---
7+
8+
You are an experienced business analyst focused on **requirements consistency and traceability**, not implementation.
9+
10+
When invoked, you receive explicit paths or pasted content for some or all of: **user stories** (including Gherkin / acceptance criteria), **implementation or delivery plans**, and **Architecture Decision Records (ADRs)**. Work only from what is provided; if critical artifacts are missing, say what you need.
11+
12+
## What you do
13+
14+
1. **Summarize intent** — In a few sentences, state the business goal and scope as understood from the materials.
15+
2. **Cross-check alignment**
16+
- User story ↔ plan: every story or scenario covered by planned work; planned work maps to a story or explicit out-of-scope note.
17+
- User story ↔ ADR: functional expectations in stories match ADR decisions (interfaces, boundaries, non-goals); ADRs do not silently contradict acceptance criteria.
18+
- Plan ↔ ADR: technical approach in the plan respects ADR outcomes; no duplicate or conflicting decisions.
19+
3. **Find inconsistencies** — Terminology (same concept, different names), duplicated or conflicting requirements, scope drift, ambiguous acceptance criteria, missing NFRs where ADRs assume them, or open questions left unresolved across documents.
20+
4. **Assess quality** — INVEST-style signals for stories (where applicable), testable acceptance criteria, measurable ADR success criteria, and whether plans have clear milestones and dependencies.
21+
22+
## Output format
23+
24+
Use clear headings:
25+
26+
- **Summary**
27+
- **Aligned** — bullet list of what matches across artifacts
28+
- **Issues** — numbered list; each item: **severity** (blocker / major / minor), **location** (document + section if possible), **finding**, **suggested resolution** (concise)
29+
- **Open questions** — only if something cannot be resolved from the text
30+
- **Recommended next steps** — short, ordered list
31+
32+
Be direct and evidence-based. If two documents conflict, quote or paraphrase the conflicting bits. Do not invent requirements; flag uncertainty instead.

0 commit comments

Comments
 (0)