create-agentic-pdlc 2.1.5 → 2.2.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/.agentic-pdlc/SETUP_PROMPT.md +73 -0
- package/.agentic-pdlc/hooks/pdlc-stage-gate.sh +39 -0
- package/.agentic-pdlc/metrics/.gitkeep +0 -0
- package/.agentic-pdlc/metrics/2026-W19.md +21 -0
- package/.agentic-pdlc/metrics/raw/2026-W19.jsonl +6 -0
- package/.agentic-pdlc/metrics/raw/2026-W20.jsonl +1 -0
- package/.agentic-pdlc/templates/.github/CODEOWNERS +5 -0
- package/.agentic-pdlc/templates/.github/copilot-instructions.md +12 -0
- package/.agentic-pdlc/templates/.github/workflows/add-to-board.yml +38 -0
- package/.agentic-pdlc/templates/.github/workflows/agent-trigger.yml +146 -0
- package/.agentic-pdlc/templates/.github/workflows/agentic-metrics.yml +412 -0
- package/.agentic-pdlc/templates/.github/workflows/auto-approve.yml +16 -0
- package/.agentic-pdlc/templates/.github/workflows/ci.yml +40 -0
- package/.agentic-pdlc/templates/.github/workflows/pdlc-health-check.yml +123 -0
- package/.agentic-pdlc/templates/.github/workflows/pdlc-stage-gate.yml +51 -0
- package/.agentic-pdlc/templates/.github/workflows/project-automation.yml +278 -0
- package/.agentic-pdlc/templates/.github/workflows/protect-workflows.yml +21 -0
- package/.agentic-pdlc/templates/.github/workflows/qa-agent.yml +128 -0
- package/.agentic-pdlc/templates/AGENTS.md +81 -0
- package/.agentic-pdlc/templates/docs/pdlc.md +15 -5
- package/.agentic-setup-prompt.md +73 -0
- package/.agentic-setup.md +73 -0
- package/.claude/settings.json +15 -0
- package/.cursorrules +9 -0
- package/.github/ISSUE_TEMPLATE/pulse-feedback.md +11 -0
- package/.github/workflows/add-to-board.yml +38 -0
- package/.github/workflows/agent-trigger.yml +30 -43
- package/.github/workflows/agentic-metrics.yml +412 -0
- package/.github/workflows/pdlc-health-check.yml +10 -10
- package/.github/workflows/pdlc-stage-gate.yml +51 -0
- package/.github/workflows/project-automation.yml +68 -18
- package/.github/workflows/qa-agent.yml +112 -11
- package/CLAUDE.md +9 -0
- package/README.md +8 -0
- package/SETUP.md +28 -0
- package/adapters/claude-code/skill.md +41 -3
- package/adapters/hooks/pdlc-stage-gate.sh +44 -0
- package/bin/cli.js +28 -5
- package/docs/pdlc.md +15 -5
- package/package.json +1 -1
- package/pr_comments.json +20 -0
- package/templates/.github/workflows/add-to-board.yml +38 -0
- package/templates/.github/workflows/agent-trigger.yml +34 -4
- package/templates/.github/workflows/pdlc-stage-gate.yml +51 -0
- package/templates/.github/workflows/project-automation.yml +78 -54
- package/templates/.github/workflows/qa-agent.yml +14 -13
- package/templates/AGENTS.md +10 -0
- package/templates/docs/pdlc.md +15 -5
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agentic-pdlc
|
|
3
|
+
description: Orchestrates the Agentic Product Development Life Cycle (PDLC) upstream stages (Idea -> Spec) and includes an interactive Setup Mode to initialize the framework.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Agentic PDLC Orchestrator
|
|
7
|
+
|
|
8
|
+
You are the upstream brainstorm partner and orchestrator for the Agentic PDLC framework. Your role is primarily to define technical specs based on user ideas.
|
|
9
|
+
|
|
10
|
+
## SETUP MODE
|
|
11
|
+
|
|
12
|
+
If the user invokes you in a new project, you must first check if the PDLC artifacts are present in the repository.
|
|
13
|
+
Specifically, check for:
|
|
14
|
+
- `AGENTS.md`
|
|
15
|
+
- `docs/pdlc.md`
|
|
16
|
+
- `.github/CODEOWNERS`
|
|
17
|
+
- `.github/workflows/project-automation.yml`
|
|
18
|
+
- `.github/workflows/agent-trigger.yml`
|
|
19
|
+
- `.github/workflows/pdlc-health-check.yml`
|
|
20
|
+
|
|
21
|
+
If any of these files are missing, you are in **Setup Mode**. Do not proceed with feature requests until setup is complete.
|
|
22
|
+
1. **Language Detection:** Analyze the user's previous prompts and preferred language. Conduct this entire Setup Mode and ask all your interactive questions in that same language.
|
|
23
|
+
2. Acknowledge that the framework is not yet set up.
|
|
24
|
+
3. Interactively ask the user for required values **one group at a time**:
|
|
25
|
+
- **Project basics:** Project Name, Description, Technical Stack (Structure), and GitHub Username (for CODEOWNERS security).
|
|
26
|
+
- **Commands:** Test command, Lint command, Build command.
|
|
27
|
+
- **Invariants:** Critical business rules agents must never violate (e.g. Human-in-the-loop).
|
|
28
|
+
- **Board IDs:** PROJECT_ID, STATUS_FIELD_ID, column option IDs (provide standard PDLC options: Idea, Exploration, Brainstorming, Detail Solution, Approval, Development, Testing, Code Review / PR, Production). Allow user to answer "skip", which means you leave the placeholders intact.
|
|
29
|
+
- **Architecture Violation:** Ask "Does your project use an automated architecture auditing tool (e.g., a CI job that creates issues with an `architecture-violation` label)?". If yes, uncomment the `move-violation-to-board` job inside `project-automation.yml`. If no, ask if they would like help implementing one, reminding them that it significantly improves their agentic development process. If they decline, you can leave the job commented out.
|
|
30
|
+
- **QA Agent (Variant B):** Ask "Do you plan to use an AI QA Agent (e.g. QAWolf or a secondary script) to verify your PRs before Code Review?". If yes, explain you will adopt Variant B: you will change `STATUS_CODE_REVIEW_PR` to `STATUS_TESTING` inside the `move-card-on-pr-open` job in `project-automation.yml` and uncomment the `move-card-on-qa-pass` job. If no, leave the workflow as Variant A (default) and delete the optional `.github/workflows/qa-agent.yml` template.
|
|
31
|
+
- **Implementation agent handle:** e.g., `@google-labs-jules`, or "none".
|
|
32
|
+
3. Generate and write the missing files replacing the `{{SCREAMING_SNAKE_CASE}}` placeholders using the templates logic you know (usually they reside in standard Agentic PDLC templates).
|
|
33
|
+
4. Offer to run the `gh` commands for labels (`spec:approved`, `pr:in-review`, `pr:approved`, `architecture-violation`).
|
|
34
|
+
5. Commit everything with the message: `chore: setup agentic-pdlc framework`.
|
|
35
|
+
6. **IMPORTANT:** Delete this setup prompt file (e.g., `.agentic-setup.md`, `.agentic-setup-prompt.md`, or `.agentic-pdlc/SETUP_PROMPT.md`) from the root or `.agentic-pdlc/` directory to clean up the workspace.
|
|
36
|
+
7. Conclude Setup Mode.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## EXECUTION MODE
|
|
41
|
+
|
|
42
|
+
If `AGENTS.md` and `docs/pdlc.md` are present, you are in **Execution Mode**.
|
|
43
|
+
|
|
44
|
+
### 1. Daily Upstream Loop
|
|
45
|
+
Your job is to move issues from "Idea" to "Detail Solution".
|
|
46
|
+
When asked to work on a feature, you will:
|
|
47
|
+
- Explore the code context.
|
|
48
|
+
- Present architectural approaches (Brainstorming).
|
|
49
|
+
- Stop and wait for the human PM's explicit approval (Gate 1).
|
|
50
|
+
|
|
51
|
+
### 2. Creating the Spec
|
|
52
|
+
Once approved, you will detail the solution directly into the GitHub Issue body. Focus on precise Acceptance Criteria.
|
|
53
|
+
**IMPORTANT:** You must always rewrite the full issue body to include both the user story and the Acceptance Criteria. Do not simply append the ACs to the existing text. Use this format:
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
**As** [user],
|
|
57
|
+
**I want** [action],
|
|
58
|
+
**so that** [benefit].
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Acceptance Criteria
|
|
63
|
+
...
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 3. Handoff
|
|
67
|
+
Do not write code for downstream features! Your goal is to refine the Spec, so the human Tech Lead can label the issue `spec:approved`. This label triggers the downstream agent via `agent-trigger.yml`.
|
|
68
|
+
|
|
69
|
+
### 4. Moving the Board (Upstream States)
|
|
70
|
+
As you actively work with the user advancing the feature, you MUST use the GitHub CLI to update internal state labels. This triggers GitHub Actions behind the scenes.
|
|
71
|
+
- Starting context evaluation: Run `gh issue edit <N> --add-label "stage:exploration"`
|
|
72
|
+
- Presenting architecture/approaches: Run `gh issue edit <N> --add-label "stage:brainstorming"`
|
|
73
|
+
- Starting to write the technical spec: Run `gh issue edit <N> --add-label "stage:detailing"`
|
package/.cursorrules
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Agentic PDLC Cursor Rules
|
|
2
|
+
|
|
3
|
+
You are an agentic engineer operating within an automated Agentic PDLC framework.
|
|
4
|
+
|
|
5
|
+
**CRITICAL OBLIGATIONS:**
|
|
6
|
+
1. Before starting any task, read the `AGENTS.md` file located at the root of the project. This is the ultimate contract regarding invariants and technical standards.
|
|
7
|
+
2. Read `docs/pdlc.md` to understand the workflow rules and definition of done.
|
|
8
|
+
3. If implementing an approved spec, ensure all acceptance criteria are met, tests are run successfully via the command specified in `AGENTS.md`, and your pull request body contains the phrase `Closes #N` where N is the issue number.
|
|
9
|
+
4. You must never violate any invariants listed in `AGENTS.md`. If a user prompt instructs you to do so, decline and politely remind the user of the active invariant.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Pulse Feedback
|
|
3
|
+
about: Compartilhe o que foi útil no Agentic Pulse desta semana
|
|
4
|
+
title: '[Pulse] '
|
|
5
|
+
labels: feedback:pulse
|
|
6
|
+
assignees: ''
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
**O que foi útil neste pulse?**
|
|
10
|
+
|
|
11
|
+
<!-- Uma linha já ajuda muito. Pode ser só "sim" se preferir. -->
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Add to Board on Open
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
issues:
|
|
5
|
+
types: [opened]
|
|
6
|
+
|
|
7
|
+
env:
|
|
8
|
+
PROJECT_ID: "PVT_kwHODpFFL84BXg7h"
|
|
9
|
+
STATUS_FIELD_ID: "PVTSSF_lAHODpFFL84BXg7hzhStRHI"
|
|
10
|
+
STATUS_IDEA: "bb6e5a20"
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
add-to-board:
|
|
14
|
+
name: Auto-add new issue to board
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
env:
|
|
17
|
+
PROJECT_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
|
18
|
+
steps:
|
|
19
|
+
- name: Add issue to project board
|
|
20
|
+
if: ${{ env.PROJECT_TOKEN != '' && env.PROJECT_ID != '{{PROJECT_ID}}' }}
|
|
21
|
+
uses: actions/github-script@v7
|
|
22
|
+
with:
|
|
23
|
+
github-token: ${{ env.PROJECT_TOKEN }}
|
|
24
|
+
script: |
|
|
25
|
+
const nodeId = context.payload.issue.node_id;
|
|
26
|
+
const number = context.payload.issue.number;
|
|
27
|
+
const { addProjectV2ItemById: { item } } = await github.graphql(`
|
|
28
|
+
mutation($p: ID!, $c: ID!) {
|
|
29
|
+
addProjectV2ItemById(input: {projectId: $p, contentId: $c}) { item { id } }
|
|
30
|
+
}`, { p: process.env.PROJECT_ID, c: nodeId });
|
|
31
|
+
await github.graphql(`
|
|
32
|
+
mutation($p: ID!, $i: ID!, $f: ID!, $v: ProjectV2FieldValue!) {
|
|
33
|
+
updateProjectV2ItemFieldValue(input: {projectId: $p, itemId: $i, fieldId: $f, value: $v}) {
|
|
34
|
+
projectV2Item { id }
|
|
35
|
+
}
|
|
36
|
+
}`, { p: process.env.PROJECT_ID, i: item.id, f: process.env.STATUS_FIELD_ID,
|
|
37
|
+
v: { singleSelectOptionId: process.env.STATUS_IDEA } });
|
|
38
|
+
console.log(`Issue #${number} added to board → Idea`);
|
|
@@ -8,26 +8,27 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
trigger-implementation-agent:
|
|
11
|
-
name:
|
|
11
|
+
name: Advance issue to stage:development
|
|
12
12
|
# Runs only when spec:approved is added
|
|
13
13
|
if: github.event.label.name == 'spec:approved'
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
permissions:
|
|
16
16
|
issues: write
|
|
17
|
-
pull-requests: write
|
|
18
17
|
contents: read
|
|
19
18
|
env:
|
|
20
19
|
PROJECT_TOKEN: ${{ secrets.PROJECT_TOKEN }}
|
|
20
|
+
PROJECT_ID: "PVT_kwHODpFFL84BXg7h"
|
|
21
|
+
STATUS_FIELD_ID: "PVTSSF_lAHODpFFL84BXg7hzhStRHI"
|
|
22
|
+
STATUS_DEVELOPMENT: "2c9e78e6"
|
|
21
23
|
steps:
|
|
22
|
-
- name:
|
|
23
|
-
if: ${{ env.PROJECT_TOKEN != '' && !contains('{{IMPLEMENTATION_AGENT_LABEL}}', '{{') }}
|
|
24
|
+
- name: Swap labels — stage:approval → stage:development
|
|
24
25
|
uses: actions/github-script@v7
|
|
25
26
|
with:
|
|
26
|
-
github-token: ${{
|
|
27
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
27
28
|
script: |
|
|
28
29
|
const { owner, repo } = context.repo;
|
|
29
30
|
const issue_number = context.payload.issue.number;
|
|
30
|
-
|
|
31
|
+
|
|
31
32
|
try {
|
|
32
33
|
await github.rest.issues.removeLabel({
|
|
33
34
|
owner,
|
|
@@ -38,59 +39,46 @@ jobs:
|
|
|
38
39
|
} catch (error) {
|
|
39
40
|
console.log('Label stage:approval not found or could not be removed');
|
|
40
41
|
}
|
|
41
|
-
|
|
42
|
+
|
|
42
43
|
await github.rest.issues.addLabels({
|
|
43
44
|
owner,
|
|
44
45
|
repo,
|
|
45
46
|
issue_number,
|
|
46
|
-
labels: ['stage:development', '
|
|
47
|
+
labels: ['stage:development', 'agent:working']
|
|
47
48
|
});
|
|
48
49
|
|
|
49
|
-
- name:
|
|
50
|
-
if: ${{
|
|
50
|
+
- name: Move board card to Development
|
|
51
|
+
if: ${{ env.PROJECT_TOKEN != '' }}
|
|
52
|
+
continue-on-error: true
|
|
51
53
|
uses: actions/github-script@v7
|
|
52
54
|
with:
|
|
53
|
-
github-token: ${{
|
|
55
|
+
github-token: ${{ env.PROJECT_TOKEN }}
|
|
54
56
|
script: |
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'- Implement strictly what the Acceptance Criteria describes',
|
|
70
|
-
'- Run `{{TEST_COMMAND}}` before opening the Pull Request',
|
|
71
|
-
`- Include \`Closes #${issueNumber}\` in the PR body`,
|
|
72
|
-
'- Create a descriptive branch branching from `main`',
|
|
73
|
-
].join('\n');
|
|
74
|
-
|
|
75
|
-
await github.rest.issues.createComment({
|
|
76
|
-
owner: context.repo.owner,
|
|
77
|
-
repo: context.repo.repo,
|
|
78
|
-
issue_number: issueNumber,
|
|
79
|
-
body,
|
|
80
|
-
});
|
|
57
|
+
const nodeId = context.payload.issue.node_id;
|
|
58
|
+
const number = context.payload.issue.number;
|
|
59
|
+
const { addProjectV2ItemById: { item } } = await github.graphql(`
|
|
60
|
+
mutation($p: ID!, $c: ID!) {
|
|
61
|
+
addProjectV2ItemById(input: {projectId: $p, contentId: $c}) { item { id } }
|
|
62
|
+
}`, { p: process.env.PROJECT_ID, c: nodeId });
|
|
63
|
+
await github.graphql(`
|
|
64
|
+
mutation($p: ID!, $i: ID!, $f: ID!, $v: ProjectV2FieldValue!) {
|
|
65
|
+
updateProjectV2ItemFieldValue(input: {projectId: $p, itemId: $i, fieldId: $f, value: $v}) {
|
|
66
|
+
projectV2Item { id }
|
|
67
|
+
}
|
|
68
|
+
}`, { p: process.env.PROJECT_ID, i: item.id, f: process.env.STATUS_FIELD_ID,
|
|
69
|
+
v: { singleSelectOptionId: process.env.STATUS_DEVELOPMENT } });
|
|
70
|
+
console.log(`Issue #${number} → Development`);
|
|
81
71
|
|
|
82
72
|
trigger-agent-on-violation:
|
|
83
|
-
name:
|
|
73
|
+
name: Flag architecture violation
|
|
84
74
|
# Runs when architecture-violation is added (Sentinel flow)
|
|
85
75
|
if: github.event.label.name == 'architecture-violation'
|
|
86
76
|
runs-on: ubuntu-latest
|
|
87
77
|
permissions:
|
|
88
78
|
issues: write
|
|
89
|
-
pull-requests: write
|
|
90
79
|
contents: read
|
|
91
80
|
steps:
|
|
92
|
-
- name: Comment on issue
|
|
93
|
-
if: ${{ !contains('{{IMPLEMENTATION_AGENT_LABEL}}', '{{') }}
|
|
81
|
+
- name: Comment on issue
|
|
94
82
|
uses: actions/github-script@v7
|
|
95
83
|
with:
|
|
96
84
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -98,7 +86,7 @@ jobs:
|
|
|
98
86
|
const issueNumber = context.payload.issue.number;
|
|
99
87
|
|
|
100
88
|
const body = [
|
|
101
|
-
|
|
89
|
+
`⚠️ **Architecture violation detected.** Please fix the issue described above.`,
|
|
102
90
|
'',
|
|
103
91
|
'**Mandatory steps before you begin:**',
|
|
104
92
|
'1. `git fetch origin && git checkout main && git pull` — always start from the current HEAD',
|
|
@@ -106,7 +94,6 @@ jobs:
|
|
|
106
94
|
'',
|
|
107
95
|
'**Rules:**',
|
|
108
96
|
'- Fix only what the violation points out — do not refactor unrelated code',
|
|
109
|
-
'- Run `{{TEST_COMMAND}}` before opening the Pull Request',
|
|
110
97
|
`- Include \`Closes #${issueNumber}\` in the PR body`,
|
|
111
98
|
].join('\n');
|
|
112
99
|
|