agnostic-prompt-aps 1.1.1__py3-none-any.whl

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.
Files changed (42) hide show
  1. agnostic_prompt_aps-1.1.1.dist-info/METADATA +57 -0
  2. agnostic_prompt_aps-1.1.1.dist-info/RECORD +42 -0
  3. agnostic_prompt_aps-1.1.1.dist-info/WHEEL +5 -0
  4. agnostic_prompt_aps-1.1.1.dist-info/entry_points.txt +2 -0
  5. agnostic_prompt_aps-1.1.1.dist-info/licenses/LICENSE +190 -0
  6. agnostic_prompt_aps-1.1.1.dist-info/top_level.txt +1 -0
  7. aps_cli/__init__.py +3 -0
  8. aps_cli/cli.py +250 -0
  9. aps_cli/core.py +157 -0
  10. aps_cli/payload/agnostic-prompt-standard/SKILL.md +73 -0
  11. aps_cli/payload/agnostic-prompt-standard/assets/agents/vscode-agent-v1.0.0.agent.md +187 -0
  12. aps_cli/payload/agnostic-prompt-standard/assets/constants/constants-json-block-v1.0.0.example.md +15 -0
  13. aps_cli/payload/agnostic-prompt-standard/assets/constants/constants-text-block-v1.0.0.example.md +15 -0
  14. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-code-changes-full-v1.0.0.example.md +21 -0
  15. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-code-map-v1.0.0.example.md +18 -0
  16. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-error-v1.0.0.example.md +9 -0
  17. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-hierarchical-outline-v1.0.0.example.md +17 -0
  18. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-ideation-list-v1.0.0.example.md +20 -0
  19. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-markdown-table-v1.0.0.example.md +17 -0
  20. aps_cli/payload/agnostic-prompt-standard/assets/formats/format-table-api-coverage-v1.0.0.example.md +13 -0
  21. aps_cli/payload/agnostic-prompt-standard/platforms/README.md +39 -0
  22. aps_cli/payload/agnostic-prompt-standard/platforms/_schemas/platform-manifest.schema.json +84 -0
  23. aps_cli/payload/agnostic-prompt-standard/platforms/_schemas/tools-registry.schema.json +148 -0
  24. aps_cli/payload/agnostic-prompt-standard/platforms/_template/README.md +10 -0
  25. aps_cli/payload/agnostic-prompt-standard/platforms/_template/manifest.json +25 -0
  26. aps_cli/payload/agnostic-prompt-standard/platforms/_template/tools-registry.json +12 -0
  27. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/README.md +100 -0
  28. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/agent-frontmatter.md +24 -0
  29. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/instructions-frontmatter.md +12 -0
  30. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/prompt-frontmatter.md +18 -0
  31. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/frontmatter/skill-frontmatter.md +10 -0
  32. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/manifest.json +40 -0
  33. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/templates/AGENTS.md +7 -0
  34. aps_cli/payload/agnostic-prompt-standard/platforms/vscode-copilot/tools-registry.json +509 -0
  35. aps_cli/payload/agnostic-prompt-standard/references/00-structure.md +123 -0
  36. aps_cli/payload/agnostic-prompt-standard/references/01-vocabulary.md +124 -0
  37. aps_cli/payload/agnostic-prompt-standard/references/02-linting-and-formatting.md +122 -0
  38. aps_cli/payload/agnostic-prompt-standard/references/03-agentic-control.md +192 -0
  39. aps_cli/payload/agnostic-prompt-standard/references/04-schemas-and-types.md +137 -0
  40. aps_cli/payload/agnostic-prompt-standard/references/05-grammar.md +99 -0
  41. aps_cli/payload/agnostic-prompt-standard/references/06-logging-and-privacy.md +32 -0
  42. aps_cli/payload/agnostic-prompt-standard/references/07-error-taxonomy.md +62 -0
@@ -0,0 +1,84 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agnostic-prompt-standard.dev/schemas/platform-manifest.schema.json",
4
+ "title": "APS Platform Adapter Manifest",
5
+ "type": "object",
6
+ "required": [
7
+ "platformId",
8
+ "displayName",
9
+ "adapterVersion",
10
+ "fileConventions"
11
+ ],
12
+ "properties": {
13
+ "platformId": {
14
+ "type": "string",
15
+ "minLength": 1
16
+ },
17
+ "displayName": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "adapterVersion": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "lastUpdated": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "docs": {
30
+ "type": "object",
31
+ "additionalProperties": {
32
+ "type": "string"
33
+ }
34
+ },
35
+ "fileConventions": {
36
+ "type": "object",
37
+ "required": [
38
+ "skills",
39
+ "agents",
40
+ "prompts",
41
+ "instructions"
42
+ ],
43
+ "properties": {
44
+ "skills": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "agents": {
51
+ "type": "array",
52
+ "items": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "prompts": {
57
+ "type": "array",
58
+ "items": {
59
+ "type": "string"
60
+ }
61
+ },
62
+ "instructions": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ }
67
+ }
68
+ },
69
+ "additionalProperties": true
70
+ },
71
+ "frontmatter": {
72
+ "type": "object",
73
+ "additionalProperties": true
74
+ },
75
+ "toolNaming": {
76
+ "type": "object",
77
+ "additionalProperties": true
78
+ },
79
+ "notes": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ "additionalProperties": false
84
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://agnostic-prompt-standard.dev/schemas/tools-registry.schema.json",
4
+ "title": "APS Platform Tool Registry",
5
+ "type": "object",
6
+ "required": [
7
+ "platformId",
8
+ "adapterVersion",
9
+ "tools"
10
+ ],
11
+ "properties": {
12
+ "platformId": {
13
+ "type": "string",
14
+ "minLength": 1
15
+ },
16
+ "adapterVersion": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "lastUpdated": {
21
+ "type": "string",
22
+ "minLength": 1
23
+ },
24
+ "toolNaming": {
25
+ "type": "object",
26
+ "additionalProperties": true
27
+ },
28
+ "toolSets": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "object",
32
+ "required": [
33
+ "id",
34
+ "mention",
35
+ "description"
36
+ ],
37
+ "properties": {
38
+ "id": {
39
+ "type": "string"
40
+ },
41
+ "mention": {
42
+ "type": "string"
43
+ },
44
+ "preferredName": {
45
+ "type": [
46
+ "string",
47
+ "null"
48
+ ]
49
+ },
50
+ "legacyName": {
51
+ "type": [
52
+ "string",
53
+ "null"
54
+ ]
55
+ },
56
+ "description": {
57
+ "type": "string"
58
+ },
59
+ "tools": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ },
66
+ "additionalProperties": false
67
+ }
68
+ },
69
+ "tools": {
70
+ "type": "array",
71
+ "items": {
72
+ "type": "object",
73
+ "required": [
74
+ "id",
75
+ "mention",
76
+ "description",
77
+ "risk",
78
+ "sideEffects"
79
+ ],
80
+ "properties": {
81
+ "id": {
82
+ "type": "string"
83
+ },
84
+ "mention": {
85
+ "type": "string"
86
+ },
87
+ "preferredName": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ]
92
+ },
93
+ "legacyName": {
94
+ "type": [
95
+ "string",
96
+ "null"
97
+ ]
98
+ },
99
+ "description": {
100
+ "type": "string"
101
+ },
102
+ "risk": {
103
+ "type": "string",
104
+ "enum": [
105
+ "low",
106
+ "medium",
107
+ "high"
108
+ ]
109
+ },
110
+ "sideEffects": {
111
+ "type": "string",
112
+ "enum": [
113
+ "none",
114
+ "reads",
115
+ "writes",
116
+ "executes",
117
+ "network",
118
+ "mixed"
119
+ ]
120
+ },
121
+ "capabilities": {
122
+ "type": "array",
123
+ "items": {
124
+ "type": "string"
125
+ }
126
+ },
127
+ "notes": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "additionalProperties": false
132
+ }
133
+ },
134
+ "recommended": {
135
+ "type": "object",
136
+ "additionalProperties": {
137
+ "type": "object",
138
+ "additionalProperties": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "string"
142
+ }
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "additionalProperties": false
148
+ }
@@ -0,0 +1,10 @@
1
+ # Platform Adapter Template
2
+
3
+ Copy this folder to `platforms/<your-platform-id>/` and fill in:
4
+
5
+ - `manifest.json`
6
+ - `tools-registry.json`
7
+ - `frontmatter/` templates
8
+ - `templates/` ready-to-copy artifacts
9
+
10
+ Then validate JSON against the schemas in `platforms/_schemas/`.
@@ -0,0 +1,25 @@
1
+ {
2
+ "platformId": "your-platform-id",
3
+ "displayName": "Your Platform",
4
+ "adapterVersion": "0.1.0",
5
+ "lastUpdated": "YYYY-MM-DD",
6
+ "docs": {
7
+ "home": "https://example.com/docs"
8
+ },
9
+ "fileConventions": {
10
+ "skills": [
11
+ ".github/skills/<skill>/SKILL.md"
12
+ ],
13
+ "agents": [
14
+ ".github/agents/*.agent.md"
15
+ ],
16
+ "prompts": [
17
+ ".github/prompts/*.prompt.md"
18
+ ],
19
+ "instructions": [
20
+ ".github/copilot-instructions.md",
21
+ "AGENTS.md"
22
+ ]
23
+ },
24
+ "notes": "Describe platform-specific constraints here."
25
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "platformId": "your-platform-id",
3
+ "adapterVersion": "0.1.0",
4
+ "lastUpdated": "YYYY-MM-DD",
5
+ "toolNaming": {
6
+ "mentions": "#tool",
7
+ "frontmatter": "tool-name"
8
+ },
9
+ "toolSets": [],
10
+ "tools": [],
11
+ "recommended": {}
12
+ }
@@ -0,0 +1,100 @@
1
+ # VS Code + GitHub Copilot adapter
2
+
3
+ This adapter documents **how APS fits into VS Code Copilot's file conventions**, and provides ready-to-copy templates.
4
+
5
+ ## What this adapter provides
6
+
7
+ - `manifest.json` — where VS Code discovers skills, agents, prompts, and instructions
8
+ - `tools-registry.json` — a curated registry of tools/tool-sets and their **canonical frontmatter names**
9
+ - `frontmatter/` — copy/paste YAML frontmatter templates for VS Code files
10
+ - `templates/` — drop-in `.github/*` templates (agents)
11
+
12
+ ## Quickstart
13
+
14
+ 1. Install this APS skill into your repo at:
15
+ - `.github/skills/agnostic-prompt-standard/`
16
+ 2. Copy the templates into your workspace (root):
17
+ - From: `platforms/vscode-copilot/templates/.github/`
18
+ - To: `.github/`
19
+
20
+ After copying, you'll have:
21
+ - `.github/agents/aps-prompt-protocol.agent.md`
22
+
23
+ ## VS Code file locations (summary)
24
+
25
+ VS Code Copilot discovers these files:
26
+
27
+ - **Agent Skills**: `.github/skills/<skill-id>/SKILL.md`
28
+ - **Custom agents**: `.github/agents/*.agent.md`
29
+ - **Prompt files**: `.github/prompts/*.prompt.md`
30
+ - **Custom instructions**:
31
+ - `.github/copilot-instructions.md`
32
+ - `.github/instructions/*.instructions.md`
33
+ - `AGENTS.md` (optional)
34
+
35
+ See `manifest.json` for the full matrix (including personal and Claude locations).
36
+
37
+ ## Frontmatter nuances (important)
38
+
39
+ VS Code uses **YAML frontmatter** in several file types.
40
+
41
+ ### `*.agent.md` (custom agents)
42
+
43
+ Supported frontmatter keys include:
44
+
45
+ - `name`
46
+ - `description`
47
+ - `argument-hint`
48
+ - `tools`
49
+ - `model`
50
+ - `infer`
51
+ - `target`
52
+ - `handoffs`
53
+ - `mcp-servers`
54
+
55
+ **Lint note:** if you see diagnostics like "Unexpected indentation" on `description: >` blocks, keep `description` as a **single-line string** (quoted is safest).
56
+
57
+ ### `*.prompt.md` (prompt files)
58
+
59
+ Common keys:
60
+
61
+ - `name`
62
+ - `description`
63
+ - `argument-hint`
64
+ - `agent` (ask|edit|agent|<custom-agent-id>)
65
+ - `tools`
66
+ - `model`
67
+
68
+ See `frontmatter/` for templates.
69
+
70
+ ## Tools: names, tool-sets, and renames
71
+
72
+ ### Tool mentions vs `tools:`
73
+
74
+ - In chat, tools appear as `#` mentions (ex: `#codebase`, `#problems`).
75
+ - In frontmatter `tools: [...]`, list tool names **without** `#`.
76
+ - Depending on VS Code version, some names are **qualified** (ex: `search/codebase`, `read/problems`, `web/fetch`).
77
+
78
+ **Rule:** always prefer the exact tool name shown by VS Code's tools picker.
79
+
80
+ ### Common rename fixes (VS Code diagnostics)
81
+
82
+ If you get diagnostics like "Tool or toolset X has been renamed", update frontmatter.
83
+ Common mappings:
84
+
85
+ - `problems` → `read/problems`
86
+ - `changes` → `search/changes`
87
+ - `usages` → `search/usages`
88
+ - `fetch` → `web/fetch`
89
+ - `todos` → `todo`
90
+
91
+ This repository encodes the canonical names in `tools-registry.json`.
92
+
93
+ ### APS tool bundles
94
+
95
+ For APS, we recommend starting with:
96
+
97
+ - **Planner** (read-only-ish): `recommended.aps.planner`
98
+ - **Implementer**: `recommended.aps.implementer`
99
+
100
+ Both are defined in `tools-registry.json` so you can keep frontmatter small and consistent.
@@ -0,0 +1,24 @@
1
+ ```yaml
2
+ ---
3
+ name: Your Agent Name
4
+ description: "What this agent does and when to use it."
5
+ # Optional: a short hint shown in the UI
6
+ argument-hint: "Describe the task…"
7
+ # Optional: list of tools/tool-sets available to this agent
8
+ tools: ["search", "read", "edit", "execute", "todo", "web/fetch"]
9
+ # Optional: default model for this agent (if your org enables model selection)
10
+ model: "GPT-4.1"
11
+ # Optional: allow VS Code to run subagents (isolated contexts)
12
+ infer: true
13
+ # Optional: platform target (helps portability)
14
+ target: vscode
15
+ # Optional: tool servers + handoffs (advanced)
16
+ mcp-servers: []
17
+ handoffs: []
18
+ ---
19
+ ```
20
+
21
+ Notes:
22
+ - VS Code loads custom agents from `.github/agents/*.agent.md`.
23
+ - If you see “Unexpected indentation” diagnostics, keep `description` as a **single-line** string (avoid YAML block scalars like `description: >`).
24
+ - Tool names in `tools:` may be qualified (for example: `search/codebase`, `read/problems`, `web/fetch`). Prefer the exact tool name shown by VS Code’s tools picker.
@@ -0,0 +1,12 @@
1
+ ```yaml
2
+ ---
3
+ applyTo: "**/*.ts,**/*.tsx"
4
+ description: "Frontend coding conventions"
5
+ # Optional (GitHub ecosystem): excludeAgent: "code-review" | "coding-agent"
6
+ ---
7
+ ```
8
+
9
+ Notes:
10
+ - VS Code supports a single `.github/copilot-instructions.md` (workspace-wide).
11
+ - VS Code also supports targeted `*.instructions.md` files (default folder: `.github/instructions`).
12
+ - VS Code can read `AGENTS.md` files (workspace root; optional nested via setting).
@@ -0,0 +1,18 @@
1
+ ```yaml
2
+ ---
3
+ name: Your Prompt Name
4
+ description: What this reusable prompt does.
5
+ # Optional: short hint shown in the UI
6
+ argument-hint: "Describe the input…"
7
+ # Optional: default agent to run this prompt with (ask|edit|agent|<custom-agent-id>)
8
+ agent: 'agent'
9
+ # Optional: tools or tool sets for this prompt
10
+ tools: ["search/codebase", "githubRepo", "web/fetch"]
11
+ # Optional: default model
12
+ model: "GPT-4.1"
13
+ ---
14
+ ```
15
+
16
+ Notes:
17
+ - VS Code loads prompt files from `.github/prompts/*.prompt.md`.
18
+ - Tools list priority: prompt frontmatter > agent frontmatter > user selection (see VS Code docs).
@@ -0,0 +1,10 @@
1
+ ```yaml
2
+ ---
3
+ name: your-skill-name
4
+ description: Description of what the skill does and when to use it.
5
+ ---
6
+ ```
7
+
8
+ Notes:
9
+ - `name` should be lowercase and hyphenated (e.g. `webapp-testing`).
10
+ - Keep `description` specific so Copilot can auto-load the skill when relevant.
@@ -0,0 +1,40 @@
1
+ {
2
+ "platformId": "vscode-copilot",
3
+ "displayName": "VS Code + GitHub Copilot",
4
+ "adapterVersion": "1.0.0",
5
+ "lastUpdated": "2026-01-15",
6
+ "docs": {
7
+ "agentSkills": "https://code.visualstudio.com/docs/copilot/customization/agent-skills",
8
+ "promptFiles": "https://code.visualstudio.com/docs/copilot/customization/prompt-files",
9
+ "customAgents": "https://code.visualstudio.com/docs/copilot/customization/custom-agents",
10
+ "toolsInChat": "https://code.visualstudio.com/docs/copilot/chat/chat-tools",
11
+ "toolsReference": "https://code.visualstudio.com/docs/copilot/reference/copilot-vscode-features",
12
+ "customInstructions": "https://code.visualstudio.com/docs/copilot/customization/custom-instructions"
13
+ },
14
+ "fileConventions": {
15
+ "skills": [
16
+ ".github/skills/<skill-id>/SKILL.md",
17
+ "~/.copilot/skills/<skill-id>/SKILL.md",
18
+ ".claude/skills/<skill-id>/SKILL.md (legacy)",
19
+ "~/.claude/skills/<skill-id>/SKILL.md (legacy)"
20
+ ],
21
+ "agents": [
22
+ ".github/agents/*.agent.md"
23
+ ],
24
+ "prompts": [
25
+ ".github/prompts/*.prompt.md"
26
+ ],
27
+ "instructions": [
28
+ ".github/copilot-instructions.md",
29
+ ".github/instructions/*.instructions.md",
30
+ "AGENTS.md (root, optional nested via setting)",
31
+ "CLAUDE.md / GEMINI.md (GitHub ecosystem alternates)"
32
+ ]
33
+ },
34
+ "toolNaming": {
35
+ "chatMentions": "Tools are mentioned in chat with # (e.g. #codebase).",
36
+ "frontmatterTools": "Prompt/agent YAML frontmatter uses tool names (no leading #).",
37
+ "qualification": "Newer VS Code versions may require fully-qualified tool names (example: search/codebase). Always prefer the name displayed in the VS Code tools picker."
38
+ },
39
+ "notes": "This adapter documents VS Code Copilot-specific frontmatter and tool naming so APS prompts can be generated reproducibly."
40
+ }
@@ -0,0 +1,7 @@
1
+ # AGENTS.md (agent-wide workspace instructions)
2
+
3
+ These instructions apply to AI agents working in this repository.
4
+
5
+ - If you are generating prompts, follow APS v1.0 conventions.
6
+ - Never modify files under `references/` unless explicitly asked to publish a spec revision.
7
+ - Default to planning first; only apply edits after presenting a plan.