Agent skill
templates-andrejones92-canifi-life-os
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/templates-andrejones92-canifi-life-os
SKILL.md
{{SKILL_NAME}} Skill
Overview
Claude can interact with {{SKILL_NAME}} to help you manage and automate tasks. {{DESCRIPTION}}
Capabilities
- Connect to {{SKILL_NAME}} and authenticate
- Read and retrieve data from your account
- Create, update, and delete records
- Search and filter content
- Automate common workflows
- Handle errors gracefully with retry logic
Required Environment Variables
Add to ~/.claude/canifi-env:
{{ENV_VARS}}
Usage Examples
Example 1: Basic Connection
User: "Connect to {{SKILL_NAME}} and show me my recent activity"
Claude: Navigates to {{SKILL_NAME}}, authenticates using stored credentials,
and retrieves recent activity. Provides a summary of findings.
Example 2: Search
User: "Search for [query] in {{SKILL_NAME}}"
Claude: Uses {{SKILL_NAME}}'s search functionality to find matching results.
Returns relevant items with key details.
Example 3: Create New Item
User: "Create a new [item type] in {{SKILL_NAME}} with [details]"
Claude: Creates the requested item with the provided details.
Confirms successful creation with link/reference.
Example 4: Update Existing Item
User: "Update [item] in {{SKILL_NAME}} to [new values]"
Claude: Locates the specified item, makes the requested changes,
and confirms the update was successful.
Example 5: Batch Operations
User: "Archive all [items] from [time period] in {{SKILL_NAME}}"
Claude: Searches for matching items, processes them in batches,
and reports the total number of items archived.
Authentication Flow
{{#if AUTH_TYPE_BROWSER}}
- Claude navigates to {{SKILL_NAME}} via Playwright MCP
- If not already logged in:
- Enters email/username from canifi-env
- Handles password entry if stored
- Handles 2FA if prompted (notifies user via iMessage)
- Maintains session cookies for subsequent requests
- Re-authenticates automatically when session expires {{/if}}
{{#if AUTH_TYPE_API_KEY}}
- Claude reads API credentials from canifi-env
- Adds authentication header to all API requests
- Handles token refresh if applicable
- Falls back to browser auth if API fails {{/if}}
{{#if AUTH_TYPE_OAUTH}}
- Claude initiates OAuth flow via browser
- Redirects user to {{SKILL_NAME}} authorization page
- User approves access in the popup
- Claude captures and stores access/refresh tokens
- Automatically refreshes tokens before expiration {{/if}}
{{#if AUTH_TYPE_NONE}}
- No authentication required for this skill
- Claude can access {{SKILL_NAME}} directly {{/if}}
Selectors Reference
// Common selectors for {{SKILL_NAME}}
// Update these as the UI changes
// Login elements
const loginButton = '[data-testid="login-button"]';
const emailInput = 'input[type="email"]';
const passwordInput = 'input[type="password"]';
// Navigation
const mainNav = '[role="navigation"]';
const searchInput = 'input[type="search"]';
// Content areas
const mainContent = '[role="main"]';
const listItems = '[role="listitem"]';
// Action buttons
const createButton = '[data-testid="create-button"]';
const saveButton = '[data-testid="save-button"]';
const deleteButton = '[data-testid="delete-button"]';
API Reference
// If {{SKILL_NAME}} has an API, document key endpoints here
// Base URL
const API_BASE = 'https://api.{{SKILL_ID}}.com/v1';
// Common endpoints
// GET /items - List all items
// POST /items - Create new item
// GET /items/:id - Get single item
// PUT /items/:id - Update item
// DELETE /items/:id - Delete item
// GET /search?q=query - Search items
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Authentication Failed | Invalid credentials or expired session | Retry 3 times, then notify user to check credentials |
| Rate Limited | Too many requests | Wait 60 seconds, retry with exponential backoff |
| Not Found | Item doesn't exist | Confirm query with user, suggest alternatives |
| Permission Denied | Insufficient access | Notify user to check account permissions |
| Network Error | Connection issues | Retry with increasing delays (1s, 2s, 4s, 8s) |
| Timeout | Page load too slow | Increase timeout, retry once, then notify user |
| 2FA Required | Two-factor auth needed | Send iMessage: "{{SKILL_NAME}} requires 2FA approval" |
| Account Locked | Too many failed attempts | Notify user immediately, do not retry |
Rate Limits
- API Requests: [X] requests per minute/hour
- Batch Operations: Process in groups of [Y]
- Wait Between Actions: [Z] seconds minimum
Self-Improvement Instructions
When you discover a better approach for {{SKILL_NAME}}:
- Document the improvement in your response to the user
- Suggest an update to this skill file with specific changes
- Include working selectors or API endpoints that performed better
- Note any UI/API changes that broke previous functionality
- Record successful patterns for future reference
Update Format
When suggesting updates, use this format:
SKILL_UPDATE: {{SKILL_NAME}}
Section: [section name]
Change: [description of change]
New Content:
[new content to add/replace]
Reason: [why this is better]
Known Issues & Workarounds
- Issue: [Description of known issue] Workaround: [How to work around it]
Changelog
Version 1.0.0 ({{DATE}})
- Initial skill implementation
- Basic CRUD operations
- Authentication flow
- Error handling
Notes
- This skill was generated from a template and may need customization
- Selectors should be verified against the current UI
- API endpoints should be confirmed with official documentation
- Test all operations in a safe environment before production use
- Report any issues to the Canifi community
Related Skills
- [Related Skill 1]
- [Related Skill 2]
- [Related Skill 3]
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?