[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737S699XV6NXBDVB55MAJ1R":3,"skill-same:01M737S699XV6NXBDVB55MAJ1R":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"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":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M737S699XV6NXBDVB55MAJ1R","skill-100",null,"README template structure and required sections","legendtkl\u002Fagentic-skill-router","legendtkl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2370761?v=4","01M71RR3WRQC40G964Q2GVDMND","01M737GJZQ9TF1VE3VM255EDAK",8,"MIT","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-100\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: skill-100\ndescription: \"README template structure and required sections\"\n---\n\n# README Template Rules\n\n## 🚨 CRITICAL RULES\n\n### 1. Required Sections\nEvery module README\u002FUSERGUIDE.md MUST include these sections in this order:\n- Installation\n- Usage\n- Authentication\n- Operations\n- Examples\n- Testing\n\n**Missing any section = FAIL**\n\n### 2. Code Example Quality\n- ALL code examples MUST be working, tested TypeScript code\n- Type-safe imports from the module\n- Clear, explanatory comments\n- Realistic but sanitized data (NO real credentials)\n- Include error handling in examples\n\n### 3. Never Include Real Credentials\n- ALWAYS use placeholder\u002Fexample values\n- Mark clearly as examples: `your-email@example.com`, `your-password-here`\n- Link to credential acquisition guide\n- Use .env file pattern for credential management\n\n## 🟡 STANDARD RULES\n\n### Installation Section\n\n**Must include:**\n```markdown\n## Installation\n\n\\`\\`\\`bash\nnpm install @auditmation\u002Fconnector-[vendor]-[service]\n\\`\\`\\`\n\n### Prerequisites\n- Node.js 14.x or higher\n- npm or yarn\n- Valid [Service Name] account with API access\n\\`\\`\\`\n\n**Key elements:**\n- Exact npm package name\n- Node version requirements\n- Any peer dependencies\n- Account\u002Fpermission requirements\n\n### Usage Section\n\n**Must include:**\n1. Factory function import\n2. Creating connector instance\n3. Basic connection example\n4. Simple operation example\n\n**Template:**\n```markdown\n## Usage\n\n### Basic Setup\n\n\\`\\`\\`typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\n\u002F\u002F Create connector instance\nconst connector = newServiceName();\n\\`\\`\\`\n\n### Connecting\n\n\\`\\`\\`typescript\nimport { ConnectionProfile } from '@auditmation\u002Fconnector-vendor-service';\n\nconst profile: ConnectionProfile = {\n  email: process.env.SERVICE_EMAIL!,\n  password: process.env.SERVICE_PASSWORD!\n  \u002F\u002F Add other required credentials\n};\n\nconst connectionState = await connector.connect(profile);\nconsole.log('Connected! Token expires in:', connectionState.expiresIn, 'seconds');\n\\`\\`\\`\n\n### Basic Operation\n\n\\`\\`\\`typescript\n\u002F\u002F Get API for specific resource\nconst userApi = connector.getUserApi();\n\n\u002F\u002F List resources\nconst users = await userApi.listUsers();\nconsole.log('Found', users.length, 'users');\n\\`\\`\\`\n\\`\\`\\`\n\n### Authentication Section\n\n**Must include:**\n1. Supported authentication methods\n2. How to obtain credentials\n3. .env file setup\n4. Link to credential guide (USERGUIDE.md or external docs)\n\n**Template:**\n```markdown\n## Authentication\n\n### Supported Methods\n- **Username\u002FPassword** - Basic authentication with email and password\n- **TOTP (Optional)** - Time-based One-Time Password if MFA is enabled\n\n### Obtaining Credentials\n\nSee [USERGUIDE.md](.\u002FUSERGUIDE.md) for detailed instructions on obtaining credentials.\n\nQuick summary:\n1. Log into [Service Dashboard](https:\u002F\u002Fservice.example.com)\n2. Navigate to Settings > API\n3. Create API credentials or use your login credentials\n\n### Environment Variables\n\nCreate a `.env` file in your project root:\n\n\\`\\`\\`env\nSERVICE_EMAIL=your-email@example.com\nSERVICE_PASSWORD=your-password-here\nSERVICE_TOTP_SECRET=your-totp-secret  # Optional, if MFA enabled\n\\`\\`\\`\n\n**Security Note:** Never commit `.env` files to version control. Add `.env` to your `.gitignore`.\n\\`\\`\\`\n\n### Operations Section\n\n**Must include:**\n1. List of ALL available operations\n2. Brief description of each\n3. Grouped by resource type (Producer API)\n4. Links to examples or code\n\n**Template:**\n```markdown\n## Operations\n\nThis connector supports the following operations:\n\n### User Management (UserApi)\n- `listUsers()` - Retrieve all users\n- `getUser(id)` - Get specific user by ID\n- `createUser(data)` - Create new user\n- `updateUser(id, data)` - Update existing user\n- `deleteUser(id)` - Delete user\n\n### Access Control (AcuApi)\n- `listAcus()` - List all access control units\n- `getAcu(id)` - Get specific ACU by ID\n- `unlockAcu(id)` - Remotely unlock ACU\n\n### Groups (GroupApi)\n- `listGroups()` - List all groups\n- `getGroup(id)` - Get specific group\n- `addUserToGroup(groupId, userId)` - Add user to group\n\nSee the [Examples](#examples) section for usage examples.\n\\`\\`\\`\n\n### Examples Section\n\n**Must include:**\n1. Complete, runnable examples\n2. Error handling examples\n3. Common use cases\n4. Multiple examples showing different operations\n\n**Template:**\n```markdown\n## Examples\n\n### List All Users\n\n\\`\\`\\`typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\nasync function listAllUsers() {\n  const connector = newServiceName();\n\n  try {\n    \u002F\u002F Connect\n    await connector.connect({\n      email: process.env.SERVICE_EMAIL!,\n      password: process.env.SERVICE_PASSWORD!\n    });\n\n    \u002F\u002F Get User API\n    const userApi = connector.getUserApi();\n\n    \u002F\u002F List users\n    const users = await userApi.listUsers();\n\n    console.log('Users:');\n    users.forEach(user => {\n      console.log(`- ${user.name} (${user.email})`);\n    });\n\n    \u002F\u002F Always disconnect when done\n    await connector.disconnect();\n  } catch (error) {\n    console.error('Error:', error.message);\n    process.exit(1);\n  }\n}\n\nlistAllUsers();\n\\`\\`\\`\n\n### Create and Update User\n\n\\`\\`\\`typescript\nasync function createAndUpdateUser() {\n  const connector = newServiceName();\n\n  try {\n    await connector.connect({\n      email: process.env.SERVICE_EMAIL!,\n      password: process.env.SERVICE_PASSWORD!\n    });\n\n    const userApi = connector.getUserApi();\n\n    \u002F\u002F Create user\n    const newUser = await userApi.createUser({\n      firstName: 'John',\n      lastName: 'Doe',\n      email: 'john.doe@example.com'\n    });\n    console.log('Created user:', newUser.id);\n\n    \u002F\u002F Update user\n    const updated = await userApi.updateUser(newUser.id, {\n      firstName: 'Jane'\n    });\n    console.log('Updated user:', updated.firstName);\n\n    await connector.disconnect();\n  } catch (error) {\n    console.error('Error:', error.message);\n  }\n}\n\\`\\`\\`\n\n### Error Handling\n\n\\`\\`\\`typescript\nimport {\n  InvalidCredentialsError,\n  NoSuchObjectError,\n  RateLimitExceededError\n} from '@auditmation\u002Ftypes-core-js';\n\nasync function handleErrors() {\n  const connector = newServiceName();\n\n  try {\n    await connector.connect({ \u002F* credentials *\u002F });\n    const userApi = connector.getUserApi();\n\n    const user = await userApi.getUser('non-existent-id');\n  } catch (error) {\n    if (error instanceof InvalidCredentialsError) {\n      console.error('Invalid credentials provided');\n    } else if (error instanceof NoSuchObjectError) {\n      console.error('User not found');\n    } else if (error instanceof RateLimitExceededError) {\n      console.error('Rate limit exceeded, please wait');\n    } else {\n      console.error('Unexpected error:', error);\n    }\n  } finally {\n    await connector.disconnect();\n  }\n}\n\\`\\`\\`\n\\`\\`\\`\n\n### Testing Section\n\n**Must include:**\n1. How to run tests\n2. Environment setup for tests\n3. Required test credentials\n4. What tests cover\n\n**Template:**\n```markdown\n## Testing\n\n### Running Tests\n\n\\`\\`\\`bash\n# Run all tests\nnpm test\n\n# Run specific test suite\nnpm test -- --testPathPattern=User\n\n# Run with coverage\nnpm test -- --coverage\n\\`\\`\\`\n\n### Test Environment Setup\n\nTests require valid credentials. Create a `.env.test` file:\n\n\\`\\`\\`env\nSERVICE_EMAIL=your-test-account@example.com\nSERVICE_PASSWORD=your-test-password\nSERVICE_TOTP_SECRET=your-test-totp-secret  # Optional\n\\`\\`\\`\n\n**Important:** Use a dedicated test account, NOT production credentials.\n\n### Test Coverage\n\nTests cover:\n- ✅ Connection and authentication\n- ✅ All CRUD operations for each resource type\n- ✅ Error handling (401, 403, 404, 429, etc.)\n- ✅ Data mapping between API and Core types\n- ✅ Edge cases and validation\n\n### Integration Tests\n\nIntegration tests run against the live API. To skip them:\n\n\\`\\`\\`bash\nnpm test -- --testPathPattern=\"unit\"\n\\`\\`\\`\n\\`\\`\\`\n\n## 🟢 GUIDELINES\n\n### Code Examples Best Practices\n\n**Do:**\n- ✅ Use TypeScript syntax highlighting\n- ✅ Show all necessary imports\n- ✅ Include try\u002Fcatch\u002Ffinally blocks\n- ✅ Use environment variables for credentials\n- ✅ Add descriptive console.log statements\n- ✅ Show complete, runnable code\n- ✅ Use realistic but fake data\n\n**Don't:**\n- ❌ Include real credentials\n- ❌ Show incomplete code snippets without imports\n- ❌ Omit error handling\n- ❌ Use hardcoded credentials\n- ❌ Show code that won't actually run\n\n### Credential Instructions\n\n**Do:**\n- ✅ Link to detailed credential acquisition guide\n- ✅ Show .env file examples\n- ✅ Explain security considerations\n- ✅ Provide step-by-step instructions\n- ✅ Include screenshots suggestions in USERGUIDE.md\n\n**Don't:**\n- ❌ Include real API keys or tokens\n- ❌ Encourage hardcoding credentials\n- ❌ Skip security warnings\n\n### Markdown Formatting\n\n**Structure:**\n```markdown\n# Module Name\n\n> Brief 1-2 sentence description\n\n## Installation\n...\n\n## Usage\n...\n\n## Authentication\n...\n\n## Operations\n...\n\n## Examples\n...\n\n## Testing\n...\n\n## License\nMIT\n\n## Support\nFor issues, contact support@auditmation.com\n```\n\n**Styling:**\n- Use code fences with language: \\`\\`\\`typescript\n- Use tables for mapping credentials\n- Use bullet points for lists\n- Use **bold** for important terms\n- Use > for callouts\u002Fnotes\n\n## Validation\n\n### Check Required Sections\n```bash\n# Check all required sections exist\nREQUIRED_SECTIONS=(\"Installation\" \"Usage\" \"Authentication\" \"Operations\" \"Examples\" \"Testing\")\nMISSING=0\n\nfor section in \"${REQUIRED_SECTIONS[@]}\"; do\n  if ! grep -q \"## $section\" README.md 2>\u002Fdev\u002Fnull && ! grep -q \"## $section\" USERGUIDE.md 2>\u002Fdev\u002Fnull; then\n    echo \"❌ FAIL: Missing section: $section\"\n    MISSING=1\n  fi\ndone\n\nif [ $MISSING -eq 0 ]; then\n  echo \"✅ PASS: All required sections present\"\nfi\n```\n\n### Check Code Examples\n```bash\n# Check for TypeScript code examples\nif [ -f README.md ]; then\n  COUNT=$(grep -c '```typescript' README.md)\n  if [ $COUNT -ge 3 ]; then\n    echo \"✅ PASS: Found $COUNT TypeScript code examples\"\n  else\n    echo \"❌ FAIL: Only $COUNT TypeScript examples (need at least 3)\"\n  fi\nfi\n```\n\n### Check No Real Credentials\n```bash\n# Check for suspicious patterns that might be real credentials\nif [ -f README.md ]; then\n  # Check for long alphanumeric strings that look like tokens\n  if grep -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' README.md; then\n    echo \"❌ FAIL: Possible real credentials found in README\"\n  else\n    echo \"✅ PASS: No obvious credentials in README\"\n  fi\nfi\n\nif [ -f USERGUIDE.md ]; then\n  if grep -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' USERGUIDE.md; then\n    echo \"❌ FAIL: Possible real credentials found in USERGUIDE\"\n  else\n    echo \"✅ PASS: No obvious credentials in USERGUIDE\"\n  fi\nfi\n```\n\n### Check Factory Function Documentation\n```bash\n# Check factory function is documented\nif [ -f README.md ]; then\n  if grep -q \"newServiceName\\|new[A-Z][a-zA-Z]*(\" README.md; then\n    echo \"✅ PASS: Factory function documented\"\n  else\n    echo \"❌ FAIL: Factory function not documented\"\n  fi\nfi\n```\n\n### Check Error Handling Examples\n```bash\n# Check for error handling in examples\nif [ -f README.md ]; then\n  if grep -q \"try\\|catch\\|Error\" README.md; then\n    echo \"✅ PASS: Error handling shown in examples\"\n  else\n    echo \"⚠️ WARN: No error handling examples found\"\n  fi\nfi\n```\n\n### Complete Validation Script\n```bash\n#!\u002Fbin\u002Fbash\n# validate-readme.sh - Complete README validation\n\necho \"=== README Validation ===\"\necho \"\"\n\n# Find README or USERGUIDE\nif [ -f README.md ]; then\n  DOC=\"README.md\"\nelif [ -f USERGUIDE.md ]; then\n  DOC=\"USERGUIDE.md\"\nelse\n  echo \"❌ FAIL: No README.md or USERGUIDE.md found\"\n  exit 1\nfi\n\necho \"Checking: $DOC\"\necho \"\"\n\n# 1. Required sections\necho \"1. Required Sections:\"\nSECTIONS=(\"Installation\" \"Usage\" \"Authentication\" \"Operations\" \"Examples\" \"Testing\")\nALL_PRESENT=1\nfor section in \"${SECTIONS[@]}\"; do\n  if grep -q \"## $section\" \"$DOC\"; then\n    echo \"  ✅ $section\"\n  else\n    echo \"  ❌ $section (MISSING)\"\n    ALL_PRESENT=0\n  fi\ndone\necho \"\"\n\n# 2. Code examples\necho \"2. Code Examples:\"\nTS_COUNT=$(grep -c '```typescript' \"$DOC\" 2>\u002Fdev\u002Fnull || echo \"0\")\nif [ \"$TS_COUNT\" -ge 3 ]; then\n  echo \"  ✅ Found $TS_COUNT TypeScript examples\"\nelse\n  echo \"  ❌ Only $TS_COUNT TypeScript examples (need ≥3)\"\nfi\necho \"\"\n\n# 3. Factory function\necho \"3. Factory Function:\"\nif grep -q \"new[A-Z][a-zA-Z]*(\" \"$DOC\"; then\n  echo \"  ✅ Factory function documented\"\nelse\n  echo \"  ❌ Factory function not documented\"\nfi\necho \"\"\n\n# 4. Error handling\necho \"4. Error Handling:\"\nif grep -q \"try\\|catch\\|Error\" \"$DOC\"; then\n  echo \"  ✅ Error handling examples present\"\nelse\n  echo \"  ⚠️  No error handling examples\"\nfi\necho \"\"\n\n# 5. Credentials safety\necho \"5. Credentials Safety:\"\nif grep -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' \"$DOC\" > \u002Fdev\u002Fnull; then\n  echo \"  ❌ Possible real credentials detected!\"\n  grep -n -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' \"$DOC\"\nelse\n  echo \"  ✅ No obvious real credentials\"\nfi\necho \"\"\n\n# Summary\nif [ $ALL_PRESENT -eq 1 ] && [ \"$TS_COUNT\" -ge 3 ]; then\n  echo \"=== ✅ VALIDATION PASSED ===\"\nelse\n  echo \"=== ❌ VALIDATION FAILED ===\"\n  exit 1\nfi\n```\n\n## Common Patterns\n\n### Service Name Placeholders\nWhen writing template, use these placeholders:\n- `ServiceName` - PascalCase service name (e.g., `AvigilonAltaAccess`)\n- `service-name` - kebab-case for package names (e.g., `avigilon-alta-access`)\n- `SERVICE` - UPPERCASE for environment variables (e.g., `AVIGILON_ALTA_ACCESS`)\n\n### Connection Profile Mapping Table\nAlways include a table mapping service credentials to ConnectionProfile fields:\n\n```markdown\n| Service Credential | Connection Profile Field | Description |\n|-------------------|-------------------------|-------------|\n| API Key | `apiKey` | Your service API key |\n| Account Email | `email` | Your account email address |\n| Password | `password` | Your account password |\n```\n\n### Link to USERGUIDE.md\nIf USERGUIDE.md exists with detailed credential instructions:\n\n```markdown\nFor detailed instructions on obtaining credentials, see [USERGUIDE.md](.\u002FUSERGUIDE.md).\n```\n\n### Multiple Auth Methods\nIf service supports multiple authentication methods:\n\n```markdown\n## Authentication\n\nThis connector supports two authentication methods:\n\n### Method 1: API Key (Recommended)\n\\`\\`\\`typescript\nconst profile = {\n  apiKey: process.env.SERVICE_API_KEY!\n};\n\\`\\`\\`\n\n### Method 2: Username\u002FPassword\n\\`\\`\\`typescript\nconst profile = {\n  email: process.env.SERVICE_EMAIL!,\n  password: process.env.SERVICE_PASSWORD!\n};\n\\`\\`\\`\n```\n\n## Anti-Patterns\n\n### ❌ BAD: Missing imports\n```typescript\n\u002F\u002F Bad - where does newServiceName come from?\nconst connector = newServiceName();\n```\n\n### ✅ GOOD: Complete imports\n```typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\nconst connector = newServiceName();\n```\n\n### ❌ BAD: Hardcoded credentials\n```typescript\nconst profile = {\n  apiKey: 'sk-1234567890abcdef'  \u002F\u002F NEVER do this!\n};\n```\n\n### ✅ GOOD: Environment variables\n```typescript\nconst profile = {\n  apiKey: process.env.SERVICE_API_KEY!\n};\n```\n\n### ❌ BAD: No error handling\n```typescript\nconst users = await userApi.listUsers();\n```\n\n### ✅ GOOD: Proper error handling\n```typescript\ntry {\n  const users = await userApi.listUsers();\n  console.log('Users:', users);\n} catch (error) {\n  console.error('Failed to list users:', error.message);\n}\n```\n\n### ❌ BAD: Incomplete example\n```typescript\n\u002F\u002F Get users\nconst users = await userApi.listUsers();\n```\n\n### ✅ GOOD: Complete, runnable example\n```typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\nasync function main() {\n  const connector = newServiceName();\n\n  try {\n    await connector.connect({\n      apiKey: process.env.SERVICE_API_KEY!\n    });\n\n    const userApi = connector.getUserApi();\n    const users = await userApi.listUsers();\n\n    console.log('Found', users.length, 'users');\n  } finally {\n    await connector.disconnect();\n  }\n}\n\nmain();\n```","# README Template Rules\n\n## 🚨 CRITICAL RULES\n\n### 1. Required Sections\nEvery module README\u002FUSERGUIDE.md MUST include these sections in this order:\n- Installation\n- Usage\n- Authentication\n- Operations\n- Examples\n- Testing\n\n**Missing any section = FAIL**\n\n### 2. Code Example Quality\n- ALL code examples MUST be working, tested TypeScript code\n- Type-safe imports from the module\n- Clear, explanatory comments\n- Realistic but sanitized data (NO real credentials)\n- Include error handling in examples\n\n### 3. Never Include Real Credentials\n- ALWAYS use placeholder\u002Fexample values\n- Mark clearly as examples: `your-email@example.com`, `your-password-here`\n- Link to credential acquisition guide\n- Use .env file pattern for credential management\n\n## 🟡 STANDARD RULES\n\n### Installation Section\n\n**Must include:**\n```markdown\n## Installation\n\n\\`\\`\\`bash\nnpm install @auditmation\u002Fconnector-[vendor]-[service]\n\\`\\`\\`\n\n### Prerequisites\n- Node.js 14.x or higher\n- npm or yarn\n- Valid [Service Name] account with API access\n\\`\\`\\`\n\n**Key elements:**\n- Exact npm package name\n- Node version requirements\n- Any peer dependencies\n- Account\u002Fpermission requirements\n\n### Usage Section\n\n**Must include:**\n1. Factory function import\n2. Creating connector instance\n3. Basic connection example\n4. Simple operation example\n\n**Template:**\n```markdown\n## Usage\n\n### Basic Setup\n\n\\`\\`\\`typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\n\u002F\u002F Create connector instance\nconst connector = newServiceName();\n\\`\\`\\`\n\n### Connecting\n\n\\`\\`\\`typescript\nimport { ConnectionProfile } from '@auditmation\u002Fconnector-vendor-service';\n\nconst profile: ConnectionProfile = {\n  email: process.env.SERVICE_EMAIL!,\n  password: process.env.SERVICE_PASSWORD!\n  \u002F\u002F Add other required credentials\n};\n\nconst connectionState = await connector.connect(profile);\nconsole.log('Connected! Token expires in:', connectionState.expiresIn, 'seconds');\n\\`\\`\\`\n\n### Basic Operation\n\n\\`\\`\\`typescript\n\u002F\u002F Get API for specific resource\nconst userApi = connector.getUserApi();\n\n\u002F\u002F List resources\nconst users = await userApi.listUsers();\nconsole.log('Found', users.length, 'users');\n\\`\\`\\`\n\\`\\`\\`\n\n### Authentication Section\n\n**Must include:**\n1. Supported authentication methods\n2. How to obtain credentials\n3. .env file setup\n4. Link to credential guide (USERGUIDE.md or external docs)\n\n**Template:**\n```markdown\n## Authentication\n\n### Supported Methods\n- **Username\u002FPassword** - Basic authentication with email and password\n- **TOTP (Optional)** - Time-based One-Time Password if MFA is enabled\n\n### Obtaining Credentials\n\nSee [USERGUIDE.md](.\u002FUSERGUIDE.md) for detailed instructions on obtaining credentials.\n\nQuick summary:\n1. Log into [Service Dashboard](https:\u002F\u002Fservice.example.com)\n2. Navigate to Settings > API\n3. Create API credentials or use your login credentials\n\n### Environment Variables\n\nCreate a `.env` file in your project root:\n\n\\`\\`\\`env\nSERVICE_EMAIL=your-email@example.com\nSERVICE_PASSWORD=your-password-here\nSERVICE_TOTP_SECRET=your-totp-secret  # Optional, if MFA enabled\n\\`\\`\\`\n\n**Security Note:** Never commit `.env` files to version control. Add `.env` to your `.gitignore`.\n\\`\\`\\`\n\n### Operations Section\n\n**Must include:**\n1. List of ALL available operations\n2. Brief description of each\n3. Grouped by resource type (Producer API)\n4. Links to examples or code\n\n**Template:**\n```markdown\n## Operations\n\nThis connector supports the following operations:\n\n### User Management (UserApi)\n- `listUsers()` - Retrieve all users\n- `getUser(id)` - Get specific user by ID\n- `createUser(data)` - Create new user\n- `updateUser(id, data)` - Update existing user\n- `deleteUser(id)` - Delete user\n\n### Access Control (AcuApi)\n- `listAcus()` - List all access control units\n- `getAcu(id)` - Get specific ACU by ID\n- `unlockAcu(id)` - Remotely unlock ACU\n\n### Groups (GroupApi)\n- `listGroups()` - List all groups\n- `getGroup(id)` - Get specific group\n- `addUserToGroup(groupId, userId)` - Add user to group\n\nSee the [Examples](#examples) section for usage examples.\n\\`\\`\\`\n\n### Examples Section\n\n**Must include:**\n1. Complete, runnable examples\n2. Error handling examples\n3. Common use cases\n4. Multiple examples showing different operations\n\n**Template:**\n```markdown\n## Examples\n\n### List All Users\n\n\\`\\`\\`typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\nasync function listAllUsers() {\n  const connector = newServiceName();\n\n  try {\n    \u002F\u002F Connect\n    await connector.connect({\n      email: process.env.SERVICE_EMAIL!,\n      password: process.env.SERVICE_PASSWORD!\n    });\n\n    \u002F\u002F Get User API\n    const userApi = connector.getUserApi();\n\n    \u002F\u002F List users\n    const users = await userApi.listUsers();\n\n    console.log('Users:');\n    users.forEach(user => {\n      console.log(`- ${user.name} (${user.email})`);\n    });\n\n    \u002F\u002F Always disconnect when done\n    await connector.disconnect();\n  } catch (error) {\n    console.error('Error:', error.message);\n    process.exit(1);\n  }\n}\n\nlistAllUsers();\n\\`\\`\\`\n\n### Create and Update User\n\n\\`\\`\\`typescript\nasync function createAndUpdateUser() {\n  const connector = newServiceName();\n\n  try {\n    await connector.connect({\n      email: process.env.SERVICE_EMAIL!,\n      password: process.env.SERVICE_PASSWORD!\n    });\n\n    const userApi = connector.getUserApi();\n\n    \u002F\u002F Create user\n    const newUser = await userApi.createUser({\n      firstName: 'John',\n      lastName: 'Doe',\n      email: 'john.doe@example.com'\n    });\n    console.log('Created user:', newUser.id);\n\n    \u002F\u002F Update user\n    const updated = await userApi.updateUser(newUser.id, {\n      firstName: 'Jane'\n    });\n    console.log('Updated user:', updated.firstName);\n\n    await connector.disconnect();\n  } catch (error) {\n    console.error('Error:', error.message);\n  }\n}\n\\`\\`\\`\n\n### Error Handling\n\n\\`\\`\\`typescript\nimport {\n  InvalidCredentialsError,\n  NoSuchObjectError,\n  RateLimitExceededError\n} from '@auditmation\u002Ftypes-core-js';\n\nasync function handleErrors() {\n  const connector = newServiceName();\n\n  try {\n    await connector.connect({ \u002F* credentials *\u002F });\n    const userApi = connector.getUserApi();\n\n    const user = await userApi.getUser('non-existent-id');\n  } catch (error) {\n    if (error instanceof InvalidCredentialsError) {\n      console.error('Invalid credentials provided');\n    } else if (error instanceof NoSuchObjectError) {\n      console.error('User not found');\n    } else if (error instanceof RateLimitExceededError) {\n      console.error('Rate limit exceeded, please wait');\n    } else {\n      console.error('Unexpected error:', error);\n    }\n  } finally {\n    await connector.disconnect();\n  }\n}\n\\`\\`\\`\n\\`\\`\\`\n\n### Testing Section\n\n**Must include:**\n1. How to run tests\n2. Environment setup for tests\n3. Required test credentials\n4. What tests cover\n\n**Template:**\n```markdown\n## Testing\n\n### Running Tests\n\n\\`\\`\\`bash\n# Run all tests\nnpm test\n\n# Run specific test suite\nnpm test -- --testPathPattern=User\n\n# Run with coverage\nnpm test -- --coverage\n\\`\\`\\`\n\n### Test Environment Setup\n\nTests require valid credentials. Create a `.env.test` file:\n\n\\`\\`\\`env\nSERVICE_EMAIL=your-test-account@example.com\nSERVICE_PASSWORD=your-test-password\nSERVICE_TOTP_SECRET=your-test-totp-secret  # Optional\n\\`\\`\\`\n\n**Important:** Use a dedicated test account, NOT production credentials.\n\n### Test Coverage\n\nTests cover:\n- ✅ Connection and authentication\n- ✅ All CRUD operations for each resource type\n- ✅ Error handling (401, 403, 404, 429, etc.)\n- ✅ Data mapping between API and Core types\n- ✅ Edge cases and validation\n\n### Integration Tests\n\nIntegration tests run against the live API. To skip them:\n\n\\`\\`\\`bash\nnpm test -- --testPathPattern=\"unit\"\n\\`\\`\\`\n\\`\\`\\`\n\n## 🟢 GUIDELINES\n\n### Code Examples Best Practices\n\n**Do:**\n- ✅ Use TypeScript syntax highlighting\n- ✅ Show all necessary imports\n- ✅ Include try\u002Fcatch\u002Ffinally blocks\n- ✅ Use environment variables for credentials\n- ✅ Add descriptive console.log statements\n- ✅ Show complete, runnable code\n- ✅ Use realistic but fake data\n\n**Don't:**\n- ❌ Include real credentials\n- ❌ Show incomplete code snippets without imports\n- ❌ Omit error handling\n- ❌ Use hardcoded credentials\n- ❌ Show code that won't actually run\n\n### Credential Instructions\n\n**Do:**\n- ✅ Link to detailed credential acquisition guide\n- ✅ Show .env file examples\n- ✅ Explain security considerations\n- ✅ Provide step-by-step instructions\n- ✅ Include screenshots suggestions in USERGUIDE.md\n\n**Don't:**\n- ❌ Include real API keys or tokens\n- ❌ Encourage hardcoding credentials\n- ❌ Skip security warnings\n\n### Markdown Formatting\n\n**Structure:**\n```markdown\n# Module Name\n\n> Brief 1-2 sentence description\n\n## Installation\n...\n\n## Usage\n...\n\n## Authentication\n...\n\n## Operations\n...\n\n## Examples\n...\n\n## Testing\n...\n\n## License\nMIT\n\n## Support\nFor issues, contact support@auditmation.com\n```\n\n**Styling:**\n- Use code fences with language: \\`\\`\\`typescript\n- Use tables for mapping credentials\n- Use bullet points for lists\n- Use **bold** for important terms\n- Use > for callouts\u002Fnotes\n\n## Validation\n\n### Check Required Sections\n```bash\n# Check all required sections exist\nREQUIRED_SECTIONS=(\"Installation\" \"Usage\" \"Authentication\" \"Operations\" \"Examples\" \"Testing\")\nMISSING=0\n\nfor section in \"${REQUIRED_SECTIONS[@]}\"; do\n  if ! grep -q \"## $section\" README.md 2>\u002Fdev\u002Fnull && ! grep -q \"## $section\" USERGUIDE.md 2>\u002Fdev\u002Fnull; then\n    echo \"❌ FAIL: Missing section: $section\"\n    MISSING=1\n  fi\ndone\n\nif [ $MISSING -eq 0 ]; then\n  echo \"✅ PASS: All required sections present\"\nfi\n```\n\n### Check Code Examples\n```bash\n# Check for TypeScript code examples\nif [ -f README.md ]; then\n  COUNT=$(grep -c '```typescript' README.md)\n  if [ $COUNT -ge 3 ]; then\n    echo \"✅ PASS: Found $COUNT TypeScript code examples\"\n  else\n    echo \"❌ FAIL: Only $COUNT TypeScript examples (need at least 3)\"\n  fi\nfi\n```\n\n### Check No Real Credentials\n```bash\n# Check for suspicious patterns that might be real credentials\nif [ -f README.md ]; then\n  # Check for long alphanumeric strings that look like tokens\n  if grep -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' README.md; then\n    echo \"❌ FAIL: Possible real credentials found in README\"\n  else\n    echo \"✅ PASS: No obvious credentials in README\"\n  fi\nfi\n\nif [ -f USERGUIDE.md ]; then\n  if grep -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' USERGUIDE.md; then\n    echo \"❌ FAIL: Possible real credentials found in USERGUIDE\"\n  else\n    echo \"✅ PASS: No obvious credentials in USERGUIDE\"\n  fi\nfi\n```\n\n### Check Factory Function Documentation\n```bash\n# Check factory function is documented\nif [ -f README.md ]; then\n  if grep -q \"newServiceName\\|new[A-Z][a-zA-Z]*(\" README.md; then\n    echo \"✅ PASS: Factory function documented\"\n  else\n    echo \"❌ FAIL: Factory function not documented\"\n  fi\nfi\n```\n\n### Check Error Handling Examples\n```bash\n# Check for error handling in examples\nif [ -f README.md ]; then\n  if grep -q \"try\\|catch\\|Error\" README.md; then\n    echo \"✅ PASS: Error handling shown in examples\"\n  else\n    echo \"⚠️ WARN: No error handling examples found\"\n  fi\nfi\n```\n\n### Complete Validation Script\n```bash\n#!\u002Fbin\u002Fbash\n# validate-readme.sh - Complete README validation\n\necho \"=== README Validation ===\"\necho \"\"\n\n# Find README or USERGUIDE\nif [ -f README.md ]; then\n  DOC=\"README.md\"\nelif [ -f USERGUIDE.md ]; then\n  DOC=\"USERGUIDE.md\"\nelse\n  echo \"❌ FAIL: No README.md or USERGUIDE.md found\"\n  exit 1\nfi\n\necho \"Checking: $DOC\"\necho \"\"\n\n# 1. Required sections\necho \"1. Required Sections:\"\nSECTIONS=(\"Installation\" \"Usage\" \"Authentication\" \"Operations\" \"Examples\" \"Testing\")\nALL_PRESENT=1\nfor section in \"${SECTIONS[@]}\"; do\n  if grep -q \"## $section\" \"$DOC\"; then\n    echo \"  ✅ $section\"\n  else\n    echo \"  ❌ $section (MISSING)\"\n    ALL_PRESENT=0\n  fi\ndone\necho \"\"\n\n# 2. Code examples\necho \"2. Code Examples:\"\nTS_COUNT=$(grep -c '```typescript' \"$DOC\" 2>\u002Fdev\u002Fnull || echo \"0\")\nif [ \"$TS_COUNT\" -ge 3 ]; then\n  echo \"  ✅ Found $TS_COUNT TypeScript examples\"\nelse\n  echo \"  ❌ Only $TS_COUNT TypeScript examples (need ≥3)\"\nfi\necho \"\"\n\n# 3. Factory function\necho \"3. Factory Function:\"\nif grep -q \"new[A-Z][a-zA-Z]*(\" \"$DOC\"; then\n  echo \"  ✅ Factory function documented\"\nelse\n  echo \"  ❌ Factory function not documented\"\nfi\necho \"\"\n\n# 4. Error handling\necho \"4. Error Handling:\"\nif grep -q \"try\\|catch\\|Error\" \"$DOC\"; then\n  echo \"  ✅ Error handling examples present\"\nelse\n  echo \"  ⚠️  No error handling examples\"\nfi\necho \"\"\n\n# 5. Credentials safety\necho \"5. Credentials Safety:\"\nif grep -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' \"$DOC\" > \u002Fdev\u002Fnull; then\n  echo \"  ❌ Possible real credentials detected!\"\n  grep -n -E '(password|token|key|secret).*[:=].*[A-Za-z0-9]{32,}' \"$DOC\"\nelse\n  echo \"  ✅ No obvious real credentials\"\nfi\necho \"\"\n\n# Summary\nif [ $ALL_PRESENT -eq 1 ] && [ \"$TS_COUNT\" -ge 3 ]; then\n  echo \"=== ✅ VALIDATION PASSED ===\"\nelse\n  echo \"=== ❌ VALIDATION FAILED ===\"\n  exit 1\nfi\n```\n\n## Common Patterns\n\n### Service Name Placeholders\nWhen writing template, use these placeholders:\n- `ServiceName` - PascalCase service name (e.g., `AvigilonAltaAccess`)\n- `service-name` - kebab-case for package names (e.g., `avigilon-alta-access`)\n- `SERVICE` - UPPERCASE for environment variables (e.g., `AVIGILON_ALTA_ACCESS`)\n\n### Connection Profile Mapping Table\nAlways include a table mapping service credentials to ConnectionProfile fields:\n\n```markdown\n| Service Credential | Connection Profile Field | Description |\n|-------------------|-------------------------|-------------|\n| API Key | `apiKey` | Your service API key |\n| Account Email | `email` | Your account email address |\n| Password | `password` | Your account password |\n```\n\n### Link to USERGUIDE.md\nIf USERGUIDE.md exists with detailed credential instructions:\n\n```markdown\nFor detailed instructions on obtaining credentials, see [USERGUIDE.md](.\u002FUSERGUIDE.md).\n```\n\n### Multiple Auth Methods\nIf service supports multiple authentication methods:\n\n```markdown\n## Authentication\n\nThis connector supports two authentication methods:\n\n### Method 1: API Key (Recommended)\n\\`\\`\\`typescript\nconst profile = {\n  apiKey: process.env.SERVICE_API_KEY!\n};\n\\`\\`\\`\n\n### Method 2: Username\u002FPassword\n\\`\\`\\`typescript\nconst profile = {\n  email: process.env.SERVICE_EMAIL!,\n  password: process.env.SERVICE_PASSWORD!\n};\n\\`\\`\\`\n```\n\n## Anti-Patterns\n\n### ❌ BAD: Missing imports\n```typescript\n\u002F\u002F Bad - where does newServiceName come from?\nconst connector = newServiceName();\n```\n\n### ✅ GOOD: Complete imports\n```typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\nconst connector = newServiceName();\n```\n\n### ❌ BAD: Hardcoded credentials\n```typescript\nconst profile = {\n  apiKey: 'sk-1234567890abcdef'  \u002F\u002F NEVER do this!\n};\n```\n\n### ✅ GOOD: Environment variables\n```typescript\nconst profile = {\n  apiKey: process.env.SERVICE_API_KEY!\n};\n```\n\n### ❌ BAD: No error handling\n```typescript\nconst users = await userApi.listUsers();\n```\n\n### ✅ GOOD: Proper error handling\n```typescript\ntry {\n  const users = await userApi.listUsers();\n  console.log('Users:', users);\n} catch (error) {\n  console.error('Failed to list users:', error.message);\n}\n```\n\n### ❌ BAD: Incomplete example\n```typescript\n\u002F\u002F Get users\nconst users = await userApi.listUsers();\n```\n\n### ✅ GOOD: Complete, runnable example\n```typescript\nimport { newServiceName } from '@auditmation\u002Fconnector-vendor-service';\n\nasync function main() {\n  const connector = newServiceName();\n\n  try {\n    await connector.connect({\n      apiKey: process.env.SERVICE_API_KEY!\n    });\n\n    const userApi = connector.getUserApi();\n    const users = await userApi.listUsers();\n\n    console.log('Found', users.length, 'users');\n  } finally {\n    await connector.disconnect();\n  }\n}\n\nmain();\n```",{"name":5,"description":7},"main","160b30f0b67c923077f886376fdfae1016a70702","experiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-100",2,"https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router","https:\u002F\u002Flegendtkl.github.io\u002Fagentic-skill-router\u002F","https:\u002F\u002Fgithub.com\u002Flegendtkl","http:\u002F\u002Fwww.legendtkl.com","No secret before debugging.\r\n","2026-06-04 14:02:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add legendtkl\u002Fagentic-skill-router --skill skill-100",{"tool":39,"command":40},"bunx","bunx skills add legendtkl\u002Fagentic-skill-router --skill skill-100",{"tool":42,"command":43},"pnpm","pnpm dlx skills add legendtkl\u002Fagentic-skill-router --skill skill-100","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-100\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7384EP28XVSR2R0YGRS0GK9","foo","A test skill named foo","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7384DECF306RRRC16PZJTQ5","bar","飞书 — bar with quoted Chinese","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbar\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M738491441AQ85E7GD7VVDTA","agentic-skill-router","First use any clearly matching enabled local\u002Fuser Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fskills\u002Fagentic-skill-router\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M738475HF7SXTP4HCPZJVZ8E","syn-video-trim","Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-trim\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M73845F4RD2AA6YHS1E3VQRB","syn-video-transcode","Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-transcode\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M73842YN17QSJETPZX6Z9DAG","syn-video-thumbnail","Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-thumbnail\u002FSKILL.md",[],[]]