You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/generate-plugin.agent.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
name: "Plugin Generator Agent"
3
3
description: Interactive agent that collects comprehensive requirements and generates a WordPress multi-block plugin with CPT, taxonomies, and SCF fields
Copy file name to clipboardExpand all lines: .github/instructions/agent-spec.instructions.md
+77-4Lines changed: 77 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,15 +29,85 @@ Use this file when creating or updating `*.agent.md` files inside `.github/agent
29
29
## Detailed Guidance
30
30
31
31
-**Template & metadata:** Copy the latest `.github/agents/template.agent.md`, update frontmatter values, and ensure references include `AGENTS.md` and `.github/instructions/agent-spec.instructions.md`. Use ISO `YYYY-MM-DD` dates.
32
-
-**Role & scope first:** Clearly state the agent’s purpose, persona, supported workflows (blocks, generator, release), and explicit boundaries (no deployments, no production writes, no git pushes unless specified).
33
-
-**Responsibilities & capabilities:** List only actions the team can support. Make limitations explicit (for example, “read-only for generated plugins”, “no database migrations”).
34
-
-**Allowed tools:** Enumerate every tool, script, API, or CLI command the agent may call. Note required environment variables without revealing real values.
32
+
-**Role & scope first:** Clearly state the agent's purpose, persona, supported workflows (blocks, generator, release), and explicit boundaries (no deployments, no production writes, no git pushes unless specified).
33
+
-**Responsibilities & capabilities:** List only actions the team can support. Make limitations explicit (for example, "read-only for generated plugins", "no database migrations").
34
+
-**Allowed tools:** Enumerate every tool, script, API, or CLI command the agent may call. Note required environment variables without revealing real values. Tools are explicitly listed in the `tools` frontmatter array.
35
+
-**Permissions:** Define fine-grained permissions using the approved vocabulary (see Permissions Vocabulary section below). Grant permissions conservatively based on agent's actual needs. Include the `permissions` field in frontmatter alongside `tools`.
35
36
-**Inputs & outputs:** Define accepted natural language prompts and structured inputs (JSON/YAML). Provide examples and, when useful, JSON Schema. Specify output formats, required fields, and error conventions for deterministic parsing.
36
37
-**Safety guardrails:** Include confirmation rules, non-destructive defaults, rate limits, and escalation paths to humans. Align with OWASP practices and repository security expectations.
37
38
-**Failure & rollback:** Document how to handle invalid input, tool failures, partial success, and any rollback or manual follow-up steps.
38
39
-**Test tasks & observability:** Provide at least three validation tasks (normal, edge, failure). State logging expectations (timestamps, tool calls, external interactions) and privacy considerations.
39
40
-**Changelog discipline:** Keep a changelog section in each spec. Update `version`, `last_updated`, and changelog entries whenever behaviour, tools, or guardrails change.
40
41
42
+
## Permissions Vocabulary
43
+
44
+
The `permissions` field gates what agents can access and modify. Use the approved enum values from `.github/schemas/frontmatter.schema.json`. Grant permissions conservatively and document why each is needed.
45
+
46
+
### Core Permissions
47
+
48
+
-**`read`** - Read files, directories, and repository content. Required for most agents that need to inspect code, configuration, or documentation.
49
+
-**`write`** - Create, update, or delete files in the repository. Required for agents that generate code, update configurations, or modify documentation.
50
+
-**`execute`** - Execute scripts, commands, or binaries. Required for agents that run build tools, tests, or generation scripts.
51
+
-**`shell`** - Access to shell/terminal operations. Required for agents that need to run command-line tools like npm, composer, or git.
52
+
-**`filesystem`** - Full filesystem access including directory operations. Required for agents that need to create/manage directory structures.
53
+
-**`network`** - Make network requests to external services. Required for agents that fetch data from APIs, check URLs, or integrate with external tools.
54
+
55
+
### GitHub Permissions
56
+
57
+
-**`github:repo`** - Access repository information, read branches, tags, and commits. Required for agents working with repository metadata.
58
+
-**`github:issues`** - Create, read, update GitHub issues. Required for reporting agents or issue triage automation.
59
+
-**`github:pulls`** - Create, read, update pull requests. Required for release agents or PR automation.
60
+
-**`github:workflows`** - Trigger or manage GitHub Actions workflows. Required for CI/CD integration agents.
61
+
-**`github:checks`** - Read or create status checks. Required for quality gate agents.
62
+
-**`github:actions`** - Manage GitHub Actions. Required for workflow management agents.
0 commit comments