[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ABTSEJVK4MCGDNXWZG81Z6":3,"skill-same:01M7ABTSEJVK4MCGDNXWZG81Z6":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M7ABTSEJVK4MCGDNXWZG81Z6","meta-creator",null,"Load this skill when the user requests guidance on creating new skills, MCP servers, tools, or plugins for Vibe.\n\nThis is a meta-skill that provides comprehensive guidance on the entire lifecycle:\n- Skill creation and structure\n- MCP server implementation\n- Tool and plugin development\n- Vibe system setup and configuration\n- AMX\u002FECM integration patterns\n\nUse this when the user needs architectural guidance rather than direct implementation.","asshat1981ar\u002FAutoDev","asshat1981ar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F215423827?v=4","01M7ABSCGSJRTWD09ZWDH8X3SS","01M7ABSCHGJ263MKCYD2KR4R2Y",0,"MIT","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002F.vibe\u002Fskills\u002Fmeta-creator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: meta-creator\ndescription: |\n  Load this skill when the user requests guidance on creating new skills, MCP servers, tools, or plugins for Vibe.\n  \n  This is a meta-skill that provides comprehensive guidance on the entire lifecycle:\n  - Skill creation and structure\n  - MCP server implementation\n  - Tool and plugin development\n  - Vibe system setup and configuration\n  - AMX\u002FECM integration patterns\n  \n  Use this when the user needs architectural guidance rather than direct implementation.\nmodel: mistral-medium-3.5\nuser-invocable: true\n---\n\n# Meta-Creator Skill\n\n**Purpose:** Guide the creation of Vibe skills, MCP servers, tools, and plugins with AMX\u002FECM compliance.\n\n## When to Load\n\nUse this skill when the user asks for:\n- \"How do I create a new skill?\"\n- \"What's the best way to implement an MCP server?\"\n- \"How do I integrate AMX memory into my tool?\"\n- \"What's the Vibe system architecture?\"\n- \"How do I set up my development environment?\"\n\n## Architecture Overview\n\n### Vibe Skill System\n\nVibe skills are organized as follows:\n\n```\n.vibe\u002Fskills\u002F\n├── skill-name\u002F\n│   ├── SKILL.md          # Required: Frontmatter + Markdown instructions\n│   ├── __init__.py       # Optional: Python package\n│   ├── implementation.py # Optional: Code implementation\n│   └── tests\u002F            # Optional: Unit tests\n```\n\n**Discovery Order (first match wins):**\n1. `skill_paths` from `config.toml`\n2. `.vibe\u002Fskills\u002F` (project scope)\n3. `.agents\u002Fskills\u002F` (project scope)\n4. `~\u002F.vibe\u002Fskills\u002F` (user global)\n5. `~\u002F.agents\u002Fskills\u002F` (user global)\n\n### AMX\u002FECM Compliance Requirements\n\nAll durable memory must retain:\n- **origin** - Source of the memory\n- **logical_identity** - Unique identifier\n- **repository_scope** - Repository\u002Fworktree\u002Fproject scope\n- **provenance** - Causal history list\n- **causal_ancestry** - Ancestry chain list\n- **trust_validity_state** - Trust\u002Fvalidity metadata\n- **visibility** - Access control scope\n- **purpose** - Intended use\n- **retraction_deletion_barriers** - Deletion controls\n- **canonical_semantic_digest** - SHA-256 hash\n\n## Skill Creation Workflow\n\n### 1. Planning Phase\n\n**REQUIRED:** Create or update a durable implementation plan (ExecPlan).\n\n```markdown\n# ExecPlan: [Skill Name]\n\n> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development\n\n**Goal:** [Clear, specific goal]\n\n**Architecture:** [Architecture description]\n\n**Tech Stack:** [Technologies used]\n\n**AMCX-1 Compliance:** [How AMX\u002FECM is handled]\n\n---\n\n## Global Constraints\n\n- [Constraint 1]\n- [Constraint 2]\n\n---\n\n## File map\n\n- Create: [file path] — [purpose]\n- Modify: [file path] — [changes]\n\n---\n\n## Progress\n\n### Milestone 1: [Name]\n\n**Status:** [COMPLETED\u002FPENDING\u002FIN_PROGRESS]\n\n**Acceptance Criteria:**\n- [Criterion 1]\n- [Criterion 2]\n\n**Evidence:**\n- [Proof 1]\n- [Proof 2]\n\n**Completed:** [Date]\n```\n\n### 2. Design Phase\n\n**For architectural decisions:**\n1. Define exact files\u002Finterfaces expected to change\n2. Divide work into independently verifiable vertical slices\n3. Define acceptance evidence for each slice\n4. Record dependencies between slices\n5. Specify rollback path\n\n**Recommended order:**\n```\nprotocol\u002Fspecification → schemas → reference implementation → host adapters → harness integration → CI → provider rendering\n```\n\n### 3. Implementation Phase (RED-GREEN-REFACTOR)\n\n**For each behavioral change:**\n\n**RED:**\n- Add the smallest test expressing the desired behavior\n- Run it\n- Confirm it fails for the expected reason\n\n**GREEN:**\n- Implement the smallest change that satisfies the behavior\n- Run the focused test\n- Run affected tests\n\n**REFACTOR:**\n- Improve structure without changing behavior\n- Rerun verification\n\n**Critical Rule:** A test that was never observed failing before implementation does NOT establish regression protection.\n\n### 4. Verification Phase\n\n**Every change must:**\n- Pass existing tests\n- Pass new tests\n- Maintain AMX\u002FECM compliance where applicable\n- Respect Vibe permission boundaries\n\n## MCP Server Implementation Guide\n\n### Core Requirements\n\nMCP servers must:\n1. **Respect permission model:** Only use allowed tools (read_file, write_file, edit, grep, bash)\n2. **No direct execution:** No subprocess, os.system, or direct command execution\n3. **Stateless where possible:** Use HTTP server pattern for MCP interface\n4. **Structured storage:** Use SQLite, JSON, or other structured formats\n\n### Python MCP Server Template\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"MCP Server Implementation.\"\"\"\n\nimport json\nimport sqlite3\nfrom http.server import HTTPServer, BaseHTTPRequestHandler\nfrom typing import Any, Dict, List, Optional\n\nclass MCPServer:\n    \"\"\"MCP Server with structured storage.\"\"\"\n    \n    def __init__(self, db_path: str = \".vibe\u002Fmcp-state\u002Fmemory.db\"):\n        self.db_path = db_path\n        self._init_db()\n    \n    def _init_db(self):\n        \"\"\"Initialize database.\"\"\"\n        with sqlite3.connect(self.db_path) as conn:\n            conn.execute(\"\"\"\n                CREATE TABLE IF NOT EXISTS resources (\n                    uri TEXT PRIMARY KEY,\n                    content TEXT,\n                    metadata_json TEXT\n                )\n            \"\"\")\n            conn.commit()\n    \n    def start(self, host=\"127.0.0.1\", port=8080):\n        \"\"\"Start MCP server.\"\"\"\n        server = HTTPServer((host, port), MCPHandler(self))\n        server.serve_forever()\n\nclass MCPHandler(BaseHTTPRequestHandler):\n    \"\"\"Handle MCP requests.\"\"\"\n    \n    def do_GET(self):\n        \"\"\"Handle resource reads.\"\"\"\n        # Implement MCP read operations\n        pass\n    \n    def do_POST(self):\n        \"\"\"Handle resource writes.\"\"\"\n        # Implement MCP write operations\n        pass\n```\n\n### AMX-Compliant MCP Server\n\n```python\nclass AMXMCPServer(MCPServer):\n    \"\"\"MCP Server with AMX memory compliance.\"\"\"\n    \n    AMX_REQUIRED_FIELDS = {\n        \"schema_version\", \"origin\", \"logical_identity\", \"repository_scope\",\n        \"provenance\", \"causal_ancestry\", \"trust_validity_state\", \"visibility\",\n        \"purpose\", \"retraction_deletion_barriers\", \"canonical_semantic_digest\"\n    }\n    \n    def store_memory(self, memory: Dict[str, Any]):\n        \"\"\"Store AMX-compliant memory.\"\"\"\n        # Validate AMX compliance\n        missing = self.AMX_REQUIRED_FIELDS - set(memory.keys())\n        if missing:\n            raise ValueError(f\"Missing AMX fields: {missing}\")\n        \n        # Auto-populate defaults\n        memory.setdefault(\"schema_version\", \"amx-memory-v1\")\n        memory.setdefault(\"provenance\", [])\n        memory.setdefault(\"causal_ancestry\", [])\n        \n        # Compute digest\n        memory[\"canonical_semantic_digest\"] = self._compute_digest(memory)\n        \n        # Store in database\n        with sqlite3.connect(self.db_path) as conn:\n            conn.execute(\n                \"INSERT INTO memories VALUES (?, ?, ?)\",\n                (memory[\"logical_identity\"], json.dumps(memory), \n                 memory[\"canonical_semantic_digest\"])\n            )\n            conn.commit()\n    \n    def _compute_digest(self, data: Dict[str, Any]) -> str:\n        \"\"\"Compute SHA-256 semantic digest.\"\"\"\n        import hashlib\n        data_str = json.dumps(data, sort_keys=True)\n        return hashlib.sha256(data_str.encode('utf-8')).hexdigest()\n```\n\n## ECM Integration Guide\n\nECM (Entity-Collaboration Model) tracks:\n- task\n- attempt\n- role\n- role_lease\n- message\n- artifact_reference\n- evidence_reference\n- memory_binding\n- ContextView\n\n### ECM State Structure\n\n```json\n{\n  \"tasks\": {\n    \"task-id\": {\n      \"id\": \"task-id\",\n      \"description\": \"Task description\",\n      \"type\": \"memory:store\",\n      \"status\": \"completed\",\n      \"created_at\": \"2026-08-21T00:00:00Z\",\n      \"completed_at\": \"2026-08-21T00:00:01Z\"\n    }\n  },\n  \"attempts\": {\n    \"attempt-id\": {\n      \"id\": \"attempt-id\",\n      \"task_id\": \"task-id\",\n      \"status\": \"completed\",\n      \"started_at\": \"2026-08-21T00:00:00Z\",\n      \"completed_at\": \"2026-08-21T00:00:01Z\",\n      \"result\": \"stored\"\n    }\n  },\n  \"memory_bindings\": {\n    \"binding-id\": {\n      \"id\": \"binding-id\",\n      \"memory_logical_identity\": \"memory-001\",\n      \"ecm_task_id\": \"task-id\",\n      \"ecm_attempt_id\": \"attempt-id\"\n    }\n  }\n}\n```\n\n### ECM Tracking Implementation\n\n```python\ndef _track_ecm_operation(self, operation_type: str, memory: Dict[str, Any]):\n    \"\"\"Track operation in ECM state.\"\"\"\n    task_id = f\"memory:{memory['logical_identity']}:{operation_type}\"\n    timestamp = datetime.now(timezone.utc).isoformat()\n    \n    # Create task\n    self.ecm_state[\"tasks\"][task_id] = {\n        \"id\": task_id,\n        \"description\": f\"{operation_type} memory {memory['logical_identity']}\",\n        \"type\": f\"memory:{operation_type}\",\n        \"status\": \"completed\",\n        \"created_at\": timestamp,\n        \"completed_at\": timestamp\n    }\n    \n    # Create attempt\n    attempt_id = f\"{task_id}:attempt:1\"\n    self.ecm_state[\"attempts\"][attempt_id] = {\n        \"id\": attempt_id,\n        \"task_id\": task_id,\n        \"status\": \"completed\",\n        \"started_at\": timestamp,\n        \"completed_at\": timestamp,\n        \"result\": operation_type\n    }\n    \n    # Create memory binding\n    binding_id = f\"binding:memory:{memory['logical_identity']}:ecm:task:{task_id}\"\n    self.ecm_state[\"memory_bindings\"][binding_id] = {\n        \"id\": binding_id,\n        \"memory_logical_identity\": memory[\"logical_identity\"],\n        \"ecm_task_id\": task_id,\n        \"ecm_attempt_id\": attempt_id\n    }\n    \n    self._save_ecm_state()\n```\n\n## Vibe System Setup Guide\n\n### Prerequisites\n\n**Required:**\n- Python 3.10 or 3.11\n- Rust stable toolchain (for Rust-based skills)\n- Node 24 (for Node-based tools)\n\n**Recommended:**\n- Virtual environment for Python dependencies\n- Trusted folder configuration\n\n### Configuration Structure\n\n```\n.vibe\u002F\n├── config.toml          # Main configuration\n├── skills\u002F              # Project-scoped skills\n│   └── skill-name\u002F\n│       └── SKILL.md\n├── state.json           # Vibe state (optional)\n└── logs\u002F                # Log files\n```\n\n### config.toml Example\n\n```toml\n[general]\n# Trusted folders for skill loading\ntrusted_folders = [\n    \"\u002Fdata\u002Fdata\u002Fcom.termux\u002Ffiles\u002Fhome\u002FAutoDev\"\n]\n\n[skills]\n# Additional skill paths\nskill_paths = [\n    \".vibe\u002Fskills\",\n    \".agents\u002Fskills\"\n]\n\n[permissions]\n# Tool permissions\nallowed_tools = [\"read_file\", \"write_file\", \"edit\", \"grep\", \"bash\"]\n```\n\n## Tool\u002FPlugin Development\n\n### Tool Requirements\n\nAll tools must:\n1. **Respect permission boundaries:** Only perform allowed operations\n2. **No side effects:** Tools should not modify state without explicit permission\n3. **Idempotent where possible:** Same input produces same output\n4. **Error handling:** Graceful degradation on failures\n\n### Python Tool Template\n\n```python\n\"\"\"Custom tool implementation.\"\"\"\n\nimport json\nfrom typing import Any, Dict\n\nclass CustomTool:\n    \"\"\"Custom tool with Vibe integration.\"\"\"\n    \n    def __init__(self, config: Dict[str, Any]):\n        self.config = config\n    \n    def execute(self, params: Dict[str, Any]) -> Dict[str, Any]:\n        \"\"\"Execute the tool.\"\"\"\n        # Validate input\n        required = [\"param1\", \"param2\"]\n        for param in required:\n            if param not in params:\n                raise ValueError(f\"Missing required parameter: {param}\")\n        \n        # Execute logic\n        result = self._internal_execute(params)\n        \n        # Return structured result\n        return {\n            \"status\": \"success\",\n            \"result\": result,\n            \"metadata\": {\n                \"tool\": \"custom_tool\",\n                \"timestamp\": datetime.now(timezone.utc).isoformat()\n            }\n        }\n    \n    def _internal_execute(self, params: Dict[str, Any]) -> Any:\n        \"\"\"Internal execution logic.\"\"\"\n        # Implement tool logic here\n        pass\n```\n\n## Integration Patterns\n\n### Pattern 1: AMX Memory in MCP Server\n\n```python\nclass MemoryMCPServer(MCPServer):\n    \"\"\"MCP Server with AMX memory integration.\"\"\"\n    \n    def __init__(self):\n        super().__init__()\n        self.memory_store = AMXMemoryStore()\n        self.ecm_tracker = ECMStateTracker()\n    \n    def handle_memory_request(self, request):\n        # Validate request\n        # Track in ECM\n        # Store with AMX compliance\n        # Return result\n        pass\n```\n\n### Pattern 2: ECM-Aware Tool\n\n```python\nclass ECMAwareTool:\n    \"\"\"Tool with ECM tracking.\"\"\"\n    \n    def __init__(self):\n        self.ecm_state = ECMState()\n    \n    def execute(self, params):\n        # Start ECM task\n        task_id = self.ecm_state.start_task(\n            description=params.get(\"description\"),\n            task_type=params.get(\"type\")\n        )\n        \n        try:\n            # Execute tool logic\n            result = self._execute_logic(params)\n            \n            # Complete ECM task\n            self.ecm_state.complete_task(task_id, result=result)\n            \n            return result\n        except Exception as e:\n            # Fail ECM task\n            self.ecm_state.fail_task(task_id, error=str(e))\n            raise\n```\n\n## Best Practices\n\n### 1. Skill Organization\n\n- **Single responsibility:** One skill per capability\n- **Clear naming:** Use hyphens, lowercase (e.g., `memory-manager`, not `MemoryManager`)\n- **Documentation first:** SKILL.md must clearly state when to load\n- **Minimal dependencies:** Prefer stdlib-only implementations\n\n### 2. AMX\u002FECM Compliance\n\n- **Always validate:** Check AMX fields on all memory operations\n- **Auto-populate defaults:** Fill missing fields with sensible defaults\n- **Track everything:** Every operation should have ECM tracking\n- **Immutable digests:** Never modify canonical_semantic_digest after creation\n\n### 3. Security\n\n- **Never bypass boundaries:** Respect Vibe's permission model\n- **No direct execution:** Use bash tool, not subprocess\n- **Validate all inputs:** Don't trust user input\n- **Sanitize outputs:** Remove sensitive data from responses\n\n### 4. Testing\n\n- **RED phase first:** Write failing test before implementation\n- **Test edge cases:** Empty inputs, invalid data, error conditions\n- **Verify AMX compliance:** Check all required fields in tests\n- **Test ECM tracking:** Verify collaboration state is tracked correctly\n\n## Checklist for New Skills\n\n- [ ] SKILL.md created with proper frontmatter\n- [ ] Description clearly states when to load\n- [ ] Implementation follows AMX\u002FECM patterns if applicable\n- [ ] Unit tests written (RED phase first)\n- [ ] All tests pass\n- [ ] Documentation updated\n- [ ] Integration tested\n\n## Verification Commands\n\n```bash\n# Python syntax check\npython -m py_compile skill_file.py\n\n# Run unit tests\npython -m unittest discover -s tests -v\n\n# Check AMX compliance (if applicable)\npython -c \"from skill import Implementation; impl = Implementation(); print(impl.validate_amx())\"\n\n# Verify MCP server starts\npython -c \"from skill import MCPServer; s = MCPServer(); s.start()\"\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Triple-quote conflicts:** Use single-quote (`'''`) for outer template strings\n2. **SQLite row access:** Use `conn.row_factory = sqlite3.Row` for dict-like access\n3. **Template substitution:** Use `{{` and `}}` to escape curly braces in templates\n4. **Import errors:** Ensure all paths are relative and packages are properly structured\n\n### Debugging Tips\n\n1. **Check imports:** `python -c \"import skill_module\"`\n2. **Verify paths:** Use absolute paths for file operations\n3. **Test in isolation:** Run tests in clean environment\n4. **Check permissions:** Ensure trusted folder configuration is correct\n\n## References\n\n- [Vibe Documentation](https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fvibe)\n- [MCP Specification](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fpython-sdk)\n- [AMX Specification](AMX-v1.1.md)\n- [ECM Specification](ECM-v1.1.md)\n- [AutoDev AGENTS.md](\u002Fdata\u002Fdata\u002Fcom.termux\u002Ffiles\u002Fhome\u002FAutoDev\u002FAGENTS.md)\n","# Meta-Creator Skill\n\n**Purpose:** Guide the creation of Vibe skills, MCP servers, tools, and plugins with AMX\u002FECM compliance.\n\n## When to Load\n\nUse this skill when the user asks for:\n- \"How do I create a new skill?\"\n- \"What's the best way to implement an MCP server?\"\n- \"How do I integrate AMX memory into my tool?\"\n- \"What's the Vibe system architecture?\"\n- \"How do I set up my development environment?\"\n\n## Architecture Overview\n\n### Vibe Skill System\n\nVibe skills are organized as follows:\n\n```\n.vibe\u002Fskills\u002F\n├── skill-name\u002F\n│   ├── SKILL.md          # Required: Frontmatter + Markdown instructions\n│   ├── __init__.py       # Optional: Python package\n│   ├── implementation.py # Optional: Code implementation\n│   └── tests\u002F            # Optional: Unit tests\n```\n\n**Discovery Order (first match wins):**\n1. `skill_paths` from `config.toml`\n2. `.vibe\u002Fskills\u002F` (project scope)\n3. `.agents\u002Fskills\u002F` (project scope)\n4. `~\u002F.vibe\u002Fskills\u002F` (user global)\n5. `~\u002F.agents\u002Fskills\u002F` (user global)\n\n### AMX\u002FECM Compliance Requirements\n\nAll durable memory must retain:\n- **origin** - Source of the memory\n- **logical_identity** - Unique identifier\n- **repository_scope** - Repository\u002Fworktree\u002Fproject scope\n- **provenance** - Causal history list\n- **causal_ancestry** - Ancestry chain list\n- **trust_validity_state** - Trust\u002Fvalidity metadata\n- **visibility** - Access control scope\n- **purpose** - Intended use\n- **retraction_deletion_barriers** - Deletion controls\n- **canonical_semantic_digest** - SHA-256 hash\n\n## Skill Creation Workflow\n\n### 1. Planning Phase\n\n**REQUIRED:** Create or update a durable implementation plan (ExecPlan).\n\n```markdown\n# ExecPlan: [Skill Name]\n\n> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development\n\n**Goal:** [Clear, specific goal]\n\n**Architecture:** [Architecture description]\n\n**Tech Stack:** [Technologies used]\n\n**AMCX-1 Compliance:** [How AMX\u002FECM is handled]\n\n---\n\n## Global Constraints\n\n- [Constraint 1]\n- [Constraint 2]\n\n---\n\n## File map\n\n- Create: [file path] — [purpose]\n- Modify: [file path] — [changes]\n\n---\n\n## Progress\n\n### Milestone 1: [Name]\n\n**Status:** [COMPLETED\u002FPENDING\u002FIN_PROGRESS]\n\n**Acceptance Criteria:**\n- [Criterion 1]\n- [Criterion 2]\n\n**Evidence:**\n- [Proof 1]\n- [Proof 2]\n\n**Completed:** [Date]\n```\n\n### 2. Design Phase\n\n**For architectural decisions:**\n1. Define exact files\u002Finterfaces expected to change\n2. Divide work into independently verifiable vertical slices\n3. Define acceptance evidence for each slice\n4. Record dependencies between slices\n5. Specify rollback path\n\n**Recommended order:**\n```\nprotocol\u002Fspecification → schemas → reference implementation → host adapters → harness integration → CI → provider rendering\n```\n\n### 3. Implementation Phase (RED-GREEN-REFACTOR)\n\n**For each behavioral change:**\n\n**RED:**\n- Add the smallest test expressing the desired behavior\n- Run it\n- Confirm it fails for the expected reason\n\n**GREEN:**\n- Implement the smallest change that satisfies the behavior\n- Run the focused test\n- Run affected tests\n\n**REFACTOR:**\n- Improve structure without changing behavior\n- Rerun verification\n\n**Critical Rule:** A test that was never observed failing before implementation does NOT establish regression protection.\n\n### 4. Verification Phase\n\n**Every change must:**\n- Pass existing tests\n- Pass new tests\n- Maintain AMX\u002FECM compliance where applicable\n- Respect Vibe permission boundaries\n\n## MCP Server Implementation Guide\n\n### Core Requirements\n\nMCP servers must:\n1. **Respect permission model:** Only use allowed tools (read_file, write_file, edit, grep, bash)\n2. **No direct execution:** No subprocess, os.system, or direct command execution\n3. **Stateless where possible:** Use HTTP server pattern for MCP interface\n4. **Structured storage:** Use SQLite, JSON, or other structured formats\n\n### Python MCP Server Template\n\n```python\n#!\u002Fusr\u002Fbin\u002Fenv python3\n\"\"\"MCP Server Implementation.\"\"\"\n\nimport json\nimport sqlite3\nfrom http.server import HTTPServer, BaseHTTPRequestHandler\nfrom typing import Any, Dict, List, Optional\n\nclass MCPServer:\n    \"\"\"MCP Server with structured storage.\"\"\"\n    \n    def __init__(self, db_path: str = \".vibe\u002Fmcp-state\u002Fmemory.db\"):\n        self.db_path = db_path\n        self._init_db()\n    \n    def _init_db(self):\n        \"\"\"Initialize database.\"\"\"\n        with sqlite3.connect(self.db_path) as conn:\n            conn.execute(\"\"\"\n                CREATE TABLE IF NOT EXISTS resources (\n                    uri TEXT PRIMARY KEY,\n                    content TEXT,\n                    metadata_json TEXT\n                )\n            \"\"\")\n            conn.commit()\n    \n    def start(self, host=\"127.0.0.1\", port=8080):\n        \"\"\"Start MCP server.\"\"\"\n        server = HTTPServer((host, port), MCPHandler(self))\n        server.serve_forever()\n\nclass MCPHandler(BaseHTTPRequestHandler):\n    \"\"\"Handle MCP requests.\"\"\"\n    \n    def do_GET(self):\n        \"\"\"Handle resource reads.\"\"\"\n        # Implement MCP read operations\n        pass\n    \n    def do_POST(self):\n        \"\"\"Handle resource writes.\"\"\"\n        # Implement MCP write operations\n        pass\n```\n\n### AMX-Compliant MCP Server\n\n```python\nclass AMXMCPServer(MCPServer):\n    \"\"\"MCP Server with AMX memory compliance.\"\"\"\n    \n    AMX_REQUIRED_FIELDS = {\n        \"schema_version\", \"origin\", \"logical_identity\", \"repository_scope\",\n        \"provenance\", \"causal_ancestry\", \"trust_validity_state\", \"visibility\",\n        \"purpose\", \"retraction_deletion_barriers\", \"canonical_semantic_digest\"\n    }\n    \n    def store_memory(self, memory: Dict[str, Any]):\n        \"\"\"Store AMX-compliant memory.\"\"\"\n        # Validate AMX compliance\n        missing = self.AMX_REQUIRED_FIELDS - set(memory.keys())\n        if missing:\n            raise ValueError(f\"Missing AMX fields: {missing}\")\n        \n        # Auto-populate defaults\n        memory.setdefault(\"schema_version\", \"amx-memory-v1\")\n        memory.setdefault(\"provenance\", [])\n        memory.setdefault(\"causal_ancestry\", [])\n        \n        # Compute digest\n        memory[\"canonical_semantic_digest\"] = self._compute_digest(memory)\n        \n        # Store in database\n        with sqlite3.connect(self.db_path) as conn:\n            conn.execute(\n                \"INSERT INTO memories VALUES (?, ?, ?)\",\n                (memory[\"logical_identity\"], json.dumps(memory), \n                 memory[\"canonical_semantic_digest\"])\n            )\n            conn.commit()\n    \n    def _compute_digest(self, data: Dict[str, Any]) -> str:\n        \"\"\"Compute SHA-256 semantic digest.\"\"\"\n        import hashlib\n        data_str = json.dumps(data, sort_keys=True)\n        return hashlib.sha256(data_str.encode('utf-8')).hexdigest()\n```\n\n## ECM Integration Guide\n\nECM (Entity-Collaboration Model) tracks:\n- task\n- attempt\n- role\n- role_lease\n- message\n- artifact_reference\n- evidence_reference\n- memory_binding\n- ContextView\n\n### ECM State Structure\n\n```json\n{\n  \"tasks\": {\n    \"task-id\": {\n      \"id\": \"task-id\",\n      \"description\": \"Task description\",\n      \"type\": \"memory:store\",\n      \"status\": \"completed\",\n      \"created_at\": \"2026-08-21T00:00:00Z\",\n      \"completed_at\": \"2026-08-21T00:00:01Z\"\n    }\n  },\n  \"attempts\": {\n    \"attempt-id\": {\n      \"id\": \"attempt-id\",\n      \"task_id\": \"task-id\",\n      \"status\": \"completed\",\n      \"started_at\": \"2026-08-21T00:00:00Z\",\n      \"completed_at\": \"2026-08-21T00:00:01Z\",\n      \"result\": \"stored\"\n    }\n  },\n  \"memory_bindings\": {\n    \"binding-id\": {\n      \"id\": \"binding-id\",\n      \"memory_logical_identity\": \"memory-001\",\n      \"ecm_task_id\": \"task-id\",\n      \"ecm_attempt_id\": \"attempt-id\"\n    }\n  }\n}\n```\n\n### ECM Tracking Implementation\n\n```python\ndef _track_ecm_operation(self, operation_type: str, memory: Dict[str, Any]):\n    \"\"\"Track operation in ECM state.\"\"\"\n    task_id = f\"memory:{memory['logical_identity']}:{operation_type}\"\n    timestamp = datetime.now(timezone.utc).isoformat()\n    \n    # Create task\n    self.ecm_state[\"tasks\"][task_id] = {\n        \"id\": task_id,\n        \"description\": f\"{operation_type} memory {memory['logical_identity']}\",\n        \"type\": f\"memory:{operation_type}\",\n        \"status\": \"completed\",\n        \"created_at\": timestamp,\n        \"completed_at\": timestamp\n    }\n    \n    # Create attempt\n    attempt_id = f\"{task_id}:attempt:1\"\n    self.ecm_state[\"attempts\"][attempt_id] = {\n        \"id\": attempt_id,\n        \"task_id\": task_id,\n        \"status\": \"completed\",\n        \"started_at\": timestamp,\n        \"completed_at\": timestamp,\n        \"result\": operation_type\n    }\n    \n    # Create memory binding\n    binding_id = f\"binding:memory:{memory['logical_identity']}:ecm:task:{task_id}\"\n    self.ecm_state[\"memory_bindings\"][binding_id] = {\n        \"id\": binding_id,\n        \"memory_logical_identity\": memory[\"logical_identity\"],\n        \"ecm_task_id\": task_id,\n        \"ecm_attempt_id\": attempt_id\n    }\n    \n    self._save_ecm_state()\n```\n\n## Vibe System Setup Guide\n\n### Prerequisites\n\n**Required:**\n- Python 3.10 or 3.11\n- Rust stable toolchain (for Rust-based skills)\n- Node 24 (for Node-based tools)\n\n**Recommended:**\n- Virtual environment for Python dependencies\n- Trusted folder configuration\n\n### Configuration Structure\n\n```\n.vibe\u002F\n├── config.toml          # Main configuration\n├── skills\u002F              # Project-scoped skills\n│   └── skill-name\u002F\n│       └── SKILL.md\n├── state.json           # Vibe state (optional)\n└── logs\u002F                # Log files\n```\n\n### config.toml Example\n\n```toml\n[general]\n# Trusted folders for skill loading\ntrusted_folders = [\n    \"\u002Fdata\u002Fdata\u002Fcom.termux\u002Ffiles\u002Fhome\u002FAutoDev\"\n]\n\n[skills]\n# Additional skill paths\nskill_paths = [\n    \".vibe\u002Fskills\",\n    \".agents\u002Fskills\"\n]\n\n[permissions]\n# Tool permissions\nallowed_tools = [\"read_file\", \"write_file\", \"edit\", \"grep\", \"bash\"]\n```\n\n## Tool\u002FPlugin Development\n\n### Tool Requirements\n\nAll tools must:\n1. **Respect permission boundaries:** Only perform allowed operations\n2. **No side effects:** Tools should not modify state without explicit permission\n3. **Idempotent where possible:** Same input produces same output\n4. **Error handling:** Graceful degradation on failures\n\n### Python Tool Template\n\n```python\n\"\"\"Custom tool implementation.\"\"\"\n\nimport json\nfrom typing import Any, Dict\n\nclass CustomTool:\n    \"\"\"Custom tool with Vibe integration.\"\"\"\n    \n    def __init__(self, config: Dict[str, Any]):\n        self.config = config\n    \n    def execute(self, params: Dict[str, Any]) -> Dict[str, Any]:\n        \"\"\"Execute the tool.\"\"\"\n        # Validate input\n        required = [\"param1\", \"param2\"]\n        for param in required:\n            if param not in params:\n                raise ValueError(f\"Missing required parameter: {param}\")\n        \n        # Execute logic\n        result = self._internal_execute(params)\n        \n        # Return structured result\n        return {\n            \"status\": \"success\",\n            \"result\": result,\n            \"metadata\": {\n                \"tool\": \"custom_tool\",\n                \"timestamp\": datetime.now(timezone.utc).isoformat()\n            }\n        }\n    \n    def _internal_execute(self, params: Dict[str, Any]) -> Any:\n        \"\"\"Internal execution logic.\"\"\"\n        # Implement tool logic here\n        pass\n```\n\n## Integration Patterns\n\n### Pattern 1: AMX Memory in MCP Server\n\n```python\nclass MemoryMCPServer(MCPServer):\n    \"\"\"MCP Server with AMX memory integration.\"\"\"\n    \n    def __init__(self):\n        super().__init__()\n        self.memory_store = AMXMemoryStore()\n        self.ecm_tracker = ECMStateTracker()\n    \n    def handle_memory_request(self, request):\n        # Validate request\n        # Track in ECM\n        # Store with AMX compliance\n        # Return result\n        pass\n```\n\n### Pattern 2: ECM-Aware Tool\n\n```python\nclass ECMAwareTool:\n    \"\"\"Tool with ECM tracking.\"\"\"\n    \n    def __init__(self):\n        self.ecm_state = ECMState()\n    \n    def execute(self, params):\n        # Start ECM task\n        task_id = self.ecm_state.start_task(\n            description=params.get(\"description\"),\n            task_type=params.get(\"type\")\n        )\n        \n        try:\n            # Execute tool logic\n            result = self._execute_logic(params)\n            \n            # Complete ECM task\n            self.ecm_state.complete_task(task_id, result=result)\n            \n            return result\n        except Exception as e:\n            # Fail ECM task\n            self.ecm_state.fail_task(task_id, error=str(e))\n            raise\n```\n\n## Best Practices\n\n### 1. Skill Organization\n\n- **Single responsibility:** One skill per capability\n- **Clear naming:** Use hyphens, lowercase (e.g., `memory-manager`, not `MemoryManager`)\n- **Documentation first:** SKILL.md must clearly state when to load\n- **Minimal dependencies:** Prefer stdlib-only implementations\n\n### 2. AMX\u002FECM Compliance\n\n- **Always validate:** Check AMX fields on all memory operations\n- **Auto-populate defaults:** Fill missing fields with sensible defaults\n- **Track everything:** Every operation should have ECM tracking\n- **Immutable digests:** Never modify canonical_semantic_digest after creation\n\n### 3. Security\n\n- **Never bypass boundaries:** Respect Vibe's permission model\n- **No direct execution:** Use bash tool, not subprocess\n- **Validate all inputs:** Don't trust user input\n- **Sanitize outputs:** Remove sensitive data from responses\n\n### 4. Testing\n\n- **RED phase first:** Write failing test before implementation\n- **Test edge cases:** Empty inputs, invalid data, error conditions\n- **Verify AMX compliance:** Check all required fields in tests\n- **Test ECM tracking:** Verify collaboration state is tracked correctly\n\n## Checklist for New Skills\n\n- [ ] SKILL.md created with proper frontmatter\n- [ ] Description clearly states when to load\n- [ ] Implementation follows AMX\u002FECM patterns if applicable\n- [ ] Unit tests written (RED phase first)\n- [ ] All tests pass\n- [ ] Documentation updated\n- [ ] Integration tested\n\n## Verification Commands\n\n```bash\n# Python syntax check\npython -m py_compile skill_file.py\n\n# Run unit tests\npython -m unittest discover -s tests -v\n\n# Check AMX compliance (if applicable)\npython -c \"from skill import Implementation; impl = Implementation(); print(impl.validate_amx())\"\n\n# Verify MCP server starts\npython -c \"from skill import MCPServer; s = MCPServer(); s.start()\"\n```\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Triple-quote conflicts:** Use single-quote (`'''`) for outer template strings\n2. **SQLite row access:** Use `conn.row_factory = sqlite3.Row` for dict-like access\n3. **Template substitution:** Use `{{` and `}}` to escape curly braces in templates\n4. **Import errors:** Ensure all paths are relative and packages are properly structured\n\n### Debugging Tips\n\n1. **Check imports:** `python -c \"import skill_module\"`\n2. **Verify paths:** Use absolute paths for file operations\n3. **Test in isolation:** Run tests in clean environment\n4. **Check permissions:** Ensure trusted folder configuration is correct\n\n## References\n\n- [Vibe Documentation](https:\u002F\u002Fgithub.com\u002Fmistralai\u002Fvibe)\n- [MCP Specification](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fpython-sdk)\n- [AMX Specification](AMX-v1.1.md)\n- [ECM Specification](ECM-v1.1.md)\n- [AutoDev AGENTS.md](\u002Fdata\u002Fdata\u002Fcom.termux\u002Ffiles\u002Fhome\u002FAutoDev\u002FAGENTS.md)\n",{"name":5,"model":23,"description":24,"user-invocable":25},"mistral-medium-3.5","Load this skill when the user requests guidance on creating new skills, MCP servers, tools, or plugins for Vibe.\n\nThis is a meta-skill that provides comprehensive guidance on the entire lifecycle:\n- Skill creation and structure\n- MCP server implementation\n- Tool and plugin development\n- Vibe system setup and configuration\n- AMX\u002FECM integration patterns\n\nUse this when the user needs architectural guidance rather than direct implementation.\n",true,"main","1bc4344c530bba46dfb6c32ad56f155b81e19b66",".vibe\u002Fskills\u002Fmeta-creator","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev","https:\u002F\u002Fgithub.com\u002Fasshat1981ar","2026-11-14 21:51:15",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":25},[34,37,40],{"tool":35,"command":36},"npx","npx skills add asshat1981ar\u002FAutoDev --skill meta-creator",{"tool":38,"command":39},"bunx","bunx skills add asshat1981ar\u002FAutoDev --skill meta-creator",{"tool":41,"command":42},"pnpm","pnpm dlx skills add asshat1981ar\u002FAutoDev --skill meta-creator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002F.vibe\u002Fskills\u002Fmeta-creator\u002FSKILL.md",[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"__init__.py","SCRIPT","脚本",146,"https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002F.vibe\u002Fskills\u002Fmeta-creator\u002F__init__.py",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M7ABVFYJZPZWWBDEEMS25RED","skill-creator","Agentic skill creation and management for Vibe\u002FAutoDev.\n\nThis meta-skill provides:\n- Skill definition templates (AMX-compliant, ECM-aware, Cline-compatible)\n- Validation against AGENTS.md rules and AMCX-1 specifications\n- Worktree-isolated skill development\n- RED-GREEN-REFACTOR test scaffolding\n- Integration with AMX Memory and ECM state\n\nUse this skill to create new agentic skills that comply with:\n- AutoDev AGENTS.md boundaries (ForgeCore, Cline fabric purity)\n- AMCX-1 v1.1 AMX\u002FECM requirements\n- Vibe tool permission model\n- Cline Skills\u002FHooks\u002FPlugins architecture","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002Fskills\u002Fskill_creator\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7ABVC08W0W62SR59AG6D17Q","engram-memory","Production Engram MCP Server for AI agent persistent memory\n\nEngram MCP Server - Persistent memory for AI agents.\n\nProvides:\n- SQLite-backed persistent memory storage\n- MCP server interface for agent access\n- Semantic search capabilities\n- Knowledge graph support\n- Memory lifecycle management\n\nAMCX-1 Compliance: Implements AMX memory component with MCP interface.","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002Fskills\u002Fengram_memory\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7ABV811NXP0R05C99XPA8AK","amx-memory","AMCX-1 v1.1 Agent Memory (AMX) canonical portable memory history implementation.\n\nProvides durable, machine-readable memory storage conforming to AMCX-1 specifications.\nEvery memory retains: origin, logical identity, repository\u002Fworktree\u002Fproject scope,\nprovenance, causal ancestry, trust\u002Fvalidity state, visibility, purpose, retraction\u002Fdeletion\nbarriers, and canonical semantic digest.","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002Fskills\u002Famx_memory\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7ABV2BJY8XT8T917VVT38BP","vibe-setup","Load this skill when setting up, configuring, or troubleshooting Vibe in a project.\n\nProvides comprehensive guidance on:\n- Vibe installation and configuration\n- Project setup and initialization\n- Trusted folder and permission management\n- Skill discovery and loading\n- MCP server configuration\n- Integration with AutoDev's AGENTS.md rules\n\nUse this when the user needs help with Vibe environment setup.","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002F.vibe\u002Fskills\u002Fvibe-setup\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7ABTJ43ZCCQJMF86AXWH6FC","amx-ecm-integration","Load this skill when mapping or integrating AMX memory systems with ECM collaboration tracking and Vibe.\n\nProvides end-to-end architecture mapping for:\n- AMX v1.1 canonical portable memory\n- ECM collaboration state tracking\n- MCP server interfaces\n- Vibe skill integration\n- AutoDev project constraints\n\nUse this when the user needs to understand how AMX, ECM, MCP, and Vibe integrate together.","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002F.vibe\u002Fskills\u002Famx-ecm-integration\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7ABTERP1RZY7FPP18FM9KAA","vertical-slice","Implement a smallest end-to-end usable slice.","https:\u002F\u002Fgithub.com\u002Fasshat1981ar\u002FAutoDev\u002Fblob\u002Fmain\u002F.cline\u002Fskills\u002Fvertical-slice\u002FSKILL.md",[],[]]