[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H97THAQBZKF3PNSGTMCB71":3,"skill-same:01M6H97THAQBZKF3PNSGTMCB71":75},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6H97THAQBZKF3PNSGTMCB71","twinmind-reference-architecture",null,"Implement TwinMind reference architecture with best-practice project layout.\nUse when designing new TwinMind integrations, reviewing project structure,\nor establishing architecture standards for meeting AI applications.\nTrigger with phrases like \"twinmind architecture\", \"twinmind best practices\",\n\"twinmind project structure\", \"how to organize twinmind\", \"twinmind layout\".","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Ftwinmind-pack\u002Fskills\u002Ftwinmind-reference-architecture\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"architecture","twinmind reference architecture","reference","for","codex","with","architecture standards","how to","trigger","io","project","structure","standards","best-practice","use","integrations","applications","best practices","code","implement","2026-11-10 10:12:30",false,"---\nname: twinmind-reference-architecture\ndescription: |\n  Implement TwinMind reference architecture with best-practice project layout.\n  Use when designing new TwinMind integrations, reviewing project structure,\n  or establishing architecture standards for meeting AI applications.\n  Trigger with phrases like \"twinmind architecture\", \"twinmind best practices\",\n  \"twinmind project structure\", \"how to organize twinmind\", \"twinmind layout\".\nallowed-tools: Read, Grep\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# TwinMind Reference Architecture\n\n## Contents\n- [Overview](#overview)\n- [Prerequisites](#prerequisites)\n- [Instructions](#instructions)\n- [Output](#output)\n- [Error Handling](#error-handling)\n- [Examples](#examples)\n- [Resources](#resources)\n\n## Overview\nProduction-ready architecture patterns for TwinMind meeting AI integrations with layered architecture (API -> Service -> TwinMind -> Integration -> Infrastructure), singleton client wrapper, service orchestration, error boundaries, and health checks.\n\n## Prerequisites\n- Understanding of layered architecture\n- TwinMind API knowledge\n- TypeScript project setup\n- Testing framework configured\n\n## Instructions\n\n### Step 1: Project Structure\nOrganize into layers: `src\u002Ftwinmind\u002F` (client, config, types, errors, handlers), `src\u002Fservices\u002Fmeeting\u002F` (transcription, summary, actions, cache), `src\u002Fintegrations\u002F` (calendar, slack, linear, email), `src\u002Fapi\u002F` (routes, middleware), `src\u002Fjobs\u002F` (sync, cleanup, reports), `src\u002Futils\u002F` (audio, logging, metrics), plus `tests\u002F`, `config\u002F`, and `docs\u002F`.\n\n### Step 2: Client Wrapper\nBuild a singleton `TwinMindService` with Axios, caching via `TranscriptCache`, metrics via `MetricsCollector`, and request\u002Fresponse interceptors for logging and error tracking.\n\n### Step 3: Service Layer\nCreate `MeetingService` that orchestrates transcription, summary generation, action item extraction, speaker identification, and Slack notification. Run summary + action items in parallel for performance.\n\n### Step 4: Error Boundary\nImplement `TwinMindError` with error codes (AUTH_FAILED, RATE_LIMITED, SERVER_ERROR), retryable flag, and factory method `fromApiError()` for consistent error handling.\n\n### Step 5: Health Checks\nBuild `checkHealth()` that validates TwinMind API connectivity, cache availability, and database status. Return overall status (healthy\u002Fdegraded\u002Funhealthy) with per-check latency.\n\n### Step 6: Configuration Management\nCreate environment-specific JSON config files with `loadConfig()` that merges environment variables with file-based defaults for API URL, timeout, retries, cache TTL, and feature flags.\n\nSee [detailed implementation](${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md) for complete client wrapper, service layer, error boundary, health check, and config management code.\n\n## Output\n- Structured project layout\n- Client wrapper with caching and metrics\n- Service layer with business logic\n- Error boundary implemented\n- Health checks configured\n- Configuration management\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Circular dependencies | Wrong layering | Separate concerns by layer |\n| Config not loading | Wrong paths | Verify config file locations |\n| Type errors | Missing types | Add TwinMind type definitions |\n| Test isolation | Shared state | Use dependency injection |\n\n## Examples\n\n\n**Basic usage**: Apply twinmind reference architecture to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize twinmind reference architecture for production environments with multiple constraints and team-specific requirements.\n\n## Resources\n- [TwinMind API Reference](https:\u002F\u002Ftwinmind.com\u002Fdocs\u002Fapi)\n- [Clean Architecture](https:\u002F\u002Fblog.cleancoder.com\u002Funcle-bob\u002F2012\u002F08\u002F13\u002Fthe-clean-architecture.html)\n- [TypeScript Best Practices](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fdeclaration-files\u002Fdo-s-and-don-ts.html)\n\n## Next Steps\nFor multi-environment setup, see `twinmind-multi-env-setup`.","# TwinMind Reference Architecture\n\n## Contents\n- [Overview](#overview)\n- [Prerequisites](#prerequisites)\n- [Instructions](#instructions)\n- [Output](#output)\n- [Error Handling](#error-handling)\n- [Examples](#examples)\n- [Resources](#resources)\n\n## Overview\nProduction-ready architecture patterns for TwinMind meeting AI integrations with layered architecture (API -> Service -> TwinMind -> Integration -> Infrastructure), singleton client wrapper, service orchestration, error boundaries, and health checks.\n\n## Prerequisites\n- Understanding of layered architecture\n- TwinMind API knowledge\n- TypeScript project setup\n- Testing framework configured\n\n## Instructions\n\n### Step 1: Project Structure\nOrganize into layers: `src\u002Ftwinmind\u002F` (client, config, types, errors, handlers), `src\u002Fservices\u002Fmeeting\u002F` (transcription, summary, actions, cache), `src\u002Fintegrations\u002F` (calendar, slack, linear, email), `src\u002Fapi\u002F` (routes, middleware), `src\u002Fjobs\u002F` (sync, cleanup, reports), `src\u002Futils\u002F` (audio, logging, metrics), plus `tests\u002F`, `config\u002F`, and `docs\u002F`.\n\n### Step 2: Client Wrapper\nBuild a singleton `TwinMindService` with Axios, caching via `TranscriptCache`, metrics via `MetricsCollector`, and request\u002Fresponse interceptors for logging and error tracking.\n\n### Step 3: Service Layer\nCreate `MeetingService` that orchestrates transcription, summary generation, action item extraction, speaker identification, and Slack notification. Run summary + action items in parallel for performance.\n\n### Step 4: Error Boundary\nImplement `TwinMindError` with error codes (AUTH_FAILED, RATE_LIMITED, SERVER_ERROR), retryable flag, and factory method `fromApiError()` for consistent error handling.\n\n### Step 5: Health Checks\nBuild `checkHealth()` that validates TwinMind API connectivity, cache availability, and database status. Return overall status (healthy\u002Fdegraded\u002Funhealthy) with per-check latency.\n\n### Step 6: Configuration Management\nCreate environment-specific JSON config files with `loadConfig()` that merges environment variables with file-based defaults for API URL, timeout, retries, cache TTL, and feature flags.\n\nSee [detailed implementation](${CLAUDE_SKILL_DIR}\u002Freferences\u002Fimplementation.md) for complete client wrapper, service layer, error boundary, health check, and config management code.\n\n## Output\n- Structured project layout\n- Client wrapper with caching and metrics\n- Service layer with business logic\n- Error boundary implemented\n- Health checks configured\n- Configuration management\n\n## Error Handling\n\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Circular dependencies | Wrong layering | Separate concerns by layer |\n| Config not loading | Wrong paths | Verify config file locations |\n| Type errors | Missing types | Add TwinMind type definitions |\n| Test isolation | Shared state | Use dependency injection |\n\n## Examples\n\n\n**Basic usage**: Apply twinmind reference architecture to a standard project setup with default configuration options.\n\n**Advanced scenario**: Customize twinmind reference architecture for production environments with multiple constraints and team-specific requirements.\n\n## Resources\n- [TwinMind API Reference](https:\u002F\u002Ftwinmind.com\u002Fdocs\u002Fapi)\n- [Clean Architecture](https:\u002F\u002Fblog.cleancoder.com\u002Funcle-bob\u002F2012\u002F08\u002F13\u002Fthe-clean-architecture.html)\n- [TypeScript Best Practices](https:\u002F\u002Fwww.typescriptlang.org\u002Fdocs\u002Fhandbook\u002Fdeclaration-files\u002Fdo-s-and-don-ts.html)\n\n## Next Steps\nFor multi-environment setup, see `twinmind-multi-env-setup`.",{"name":5,"author":43,"license":14,"version":44,"description":45,"allowed-tools":46,"compatible-with":47},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement TwinMind reference architecture with best-practice project layout.\nUse when designing new TwinMind integrations, reviewing project structure,\nor establishing architecture standards for meeting AI applications.\nTrigger with phrases like \"twinmind architecture\", \"twinmind best practices\",\n\"twinmind project structure\", \"how to organize twinmind\", \"twinmind layout\".\n","Read, Grep","claude-code, codex, openclaw","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","claude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Ftwinmind-pack\u002Fskills\u002Ftwinmind-reference-architecture",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add micsapp\u002Fmicstec-skills --skill twinmind-reference-architecture",{"tool":61,"command":62},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill twinmind-reference-architecture",{"tool":64,"command":65},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill twinmind-reference-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Ftwinmind-pack\u002Fskills\u002Ftwinmind-reference-architecture\u002FSKILL.md",true,[69],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fimplementation.md","REFERENCE","参考文档",6055,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Ftwinmind-pack\u002Fskills\u002Ftwinmind-reference-architecture\u002Freferences\u002Fimplementation.md",[76,101,122,141,159,183],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":38},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[],[18,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,21],"azure","azure apim architecture","component","authentication","gateway","topology","Optimization","network","api","team","environment","multi-environment","workspaces","instances","selection","strategies","azure api management","mode",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":38},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[],[108,109,110,111,83,112,36,113,114,115,116,117,91,92,98,118,119,99,120,121],"deployment","apiops deployment","workflows","azure devops","infrastructure","infrastructure as code","actions","ci","github actions","github-actions","as","guides","CI\u002FCD","implementing",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":38},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[],[129,130,131,132,83,86,91,92,133,32,134,135,136,137,138,99,139,140,121,21],"policy","authoring","apim policy authoring","security","access","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":38},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[],[148,132,149,91,135,150,83,108,151,152,153,154,92,155,99,156,157,158,100,21],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":38},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[166,167,168,110,169,170,171,172,91,173,174,175,176,177,178,28,179,180,181,182],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","edit","list","view","project work","token","line","sprints",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":38},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[185,190,191,192,193,194,195,32,196,197],"npm","js","calculate","node","math","user","compute","errors"]