Using the protocol in prompts/sdd_implementation_v1.md as a base, perform a "Phase 0: Agent Skills Integration" update to that file.
Update the document to Version 2.2.0 with the following mandatory architectural changes to support the agentskills.io standard:
-
FORMAL AGENT SKILLS DISCOVERY (v2.2.0):
- Protocol Update: Define a specific "Skill Discovery" phase for agents that do NOT natively support external skill loaders (e.g., Android Studio Otter, Gemini, Copilot).
- Storage Standard: All skills must reside in
prompts/skills/<skill-name>/. - File Structure: Each folder MUST contain a single
SKILL.mdfile (the interface) and optionalscripts/orreferences/directories. - The Discovery Step: At the start of every session, the agent MUST execute
list_filesonprompts/skills/to identify available expertise.
-
METADATA SCHEMA DEFINITION:
- Explicitly define the required YAML frontmatter for
SKILL.mdso the agent knows exactly what to parse:name: (String) The unique identifier for the skill.description: (String) A concise summary of when this skill should be used. Used for "Task Matching."compatibility: (List/Array) The agents or models this skill is tested for (e.g., [gemini-1.5-pro, claude-3.5-sonnet]).version: (String) Semantic version of the skill.
- Explicitly define the required YAML frontmatter for
-
MODULAR "PULL-ON-DEMAND" REGISTRATION:
- Metadata Extraction: For every discovered skill folder, the agent MUST read ONLY the YAML frontmatter of the
SKILL.mdfile. - Context Economy: The agent is PROHIBITED from reading the body content (instructions, scripts) during discovery. This ensures the context window is preserved for the main task.
- Metadata Extraction: For every discovered skill folder, the agent MUST read ONLY the YAML frontmatter of the
-
ON-DEMAND ACTIVATION WORKFLOW:
- Define the trigger logic:
a. Task Match: When a user's request matches a skill's
descriptionfield. b. Announce: The agent must state: "Activating Skill: [Name] from prompts/skills/[name]/." c. Load: The agent reads the fullSKILL.mdand any necessary assets inreferences/. d. Persona Shift: The agent adopts the specialized expertise and constraints defined in that skill's body content.
- Define the trigger logic:
a. Task Match: When a user's request matches a skill's
-
COMPATIBILITY FOR NON-NATIVE AGENTS:
- Add a specific section called "Manual Skill Emulation".
- Mandate that for IDE-integrated assistants, this file-based discovery simulates the "plugin" architecture of Claude Code, allowing modular expertise without code-bloat.
-
CLEANUP:
- Maintain the existing "Memory Protocol" and "Phased GSD" requirements as the core execution framework.
Output: Provide the full, updated markdown content for prompts/sdd_implementation_v1.md.