docs-agent
Maintains documentation files (README.md, .claude/claude.md, .claude/agent.md, API docs) for Unite-Hub. Ensures docs stay in sync with codebase changes. Uses Haiku model for cost-effective documentation generation.
What this skill does
# Docs Agent Skill
## Overview
The Docs Agent is responsible for maintaining accurate, up-to-date documentation across the Unite-Hub project:
1. **README.md** - Project overview, installation, usage
2. **.claude/claude.md** - System overview and configuration
3. **.claude/agent.md** - Agent definitions (canonical)
4. **API Documentation** - Endpoint references
5. **Architecture Docs** - System design documents
6. **Changelog** - Version history and release notes
## Model Configuration
**Model**: `claude-haiku-4-5-20251001`
**Reason**: Fast, cost-effective, perfect for documentation tasks
**Cost**: ~$0.10-0.20 per documentation update (vs $1-2 with Sonnet/Opus)
## How to Use This Agent
### Trigger
User says: "Update README", "Document new API endpoint", "Add changelog entry", "Sync docs with code"
### What the Agent Does
#### 1. Identify Documentation Need
**Questions to Ask**:
- What changed in the code?
- Which documentation files need updates?
- Is this a new feature, bug fix, or refactor?
- What's the target audience (developers, users, both)?
#### 2. Read Current Documentation
**Step A: Locate Documentation Files**
```bash
# Find all markdown files
find . -name "*.md" | grep -v node_modules
```
**Key Documentation Files**:
- `README.md` - Main project README
- `.claude/claude.md` - System overview
- `.claude/agent.md` - Agent definitions
- `ARCHITECTURE.md` - System architecture
- `API_DOCUMENTATION.md` - API reference
- `DEPLOYMENT_GUIDE.md` - Deployment instructions
- `*.md` files in root (various guides)
**Step B: Read Relevant Files**
```typescript
// Use text_editor tool
text_editor.view("README.md");
text_editor.view(".claude/claude.md");
```
#### 3. Update Documentation
**Step A: README.md Updates**
README structure for Unite-Hub:
```markdown
# Project Name
Brief description (1-2 sentences)
## Features
- Feature 1
- Feature 2
- Feature 3
## Tech Stack
### Frontend
- Next.js 16
- React 19
- Tailwind CSS
### Backend
- Supabase
- Next.js API Routes
### AI
- Claude Opus 4
- Claude Sonnet 4.5
## Installation
Step-by-step installation instructions
## Usage
How to use the application
## API Documentation
Link to API docs
## Deployment
Deployment instructions
## Contributing
How to contribute
## License
License information
```
**Update Process**:
1. Read current README
2. Identify outdated sections
3. Update relevant sections
4. Preserve structure
5. Maintain consistent tone
**Step B: API Documentation Updates**
When new API endpoint is created:
```markdown
## API Endpoints
### POST /api/contacts/bulk-update
**Description**: Update multiple contacts in bulk
**Authentication**: Required (Supabase Auth)
**Request Body**:
```json
{
"workspaceId": "uuid",
"contactIds": ["uuid1", "uuid2"],
"updates": {
"status": "prospect",
"tags": ["warm", "interested"]
}
}
```
**Response**:
```json
{
"success": true,
"updated": 2,
"contacts": [...]
}
```
**Errors**:
- `400` - Invalid input
- `401` - Unauthorized
- `500` - Server error
**Example**:
```typescript
const res = await fetch("/api/contacts/bulk-update", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
workspaceId: "...",
contactIds: ["..."],
updates: { status: "prospect" }
})
});
const data = await res.json();
```
```
**Step C: .claude/claude.md Updates**
After significant code changes:
1. **Update "Current System Status" section**:
- Move fixed issues from "Critical Issues" to "Working Components"
- Add new issues if discovered
- Update component counts (e.g., "21 dashboard pages" → "22 dashboard pages")
2. **Update "Tech Stack Details" section**:
- Add new dependencies
- Update version numbers
- Document new integrations
3. **Update "Data Flow Analysis" section**:
- Add new workflows
- Fix broken flows
- Document critical break points
4. **Update "Immediate Next Steps" section**:
- Remove completed tasks
- Add new priority tasks
- Re-prioritize remaining work
**Step D: .claude/agent.md Updates**
When agents change:
1. **Add new agent definition**:
```markdown
### 7. New Agent Name
**ID**: `unite-hub.new-agent`
**Model**: `claude-sonnet-4-5-20250929`
**Skill File**: `.claude/skills/new-agent/SKILL.md`
#### Role
What this agent does
#### Capabilities
- Capability 1
- Capability 2
#### Tools Available
- Tool 1
- Tool 2
#### When to Invoke
- Scenario 1
- Scenario 2
```
2. **Update agent interaction patterns** if workflows change
3. **Update tool usage guidelines** if new tools are added
#### 4. Generate Changelog Entries
When code changes are released:
```markdown
# Changelog
## [1.1.0] - 2025-11-16
### Added
- New bulk update API endpoint for contacts
- Dashboard analytics page
- Hot leads email send functionality
### Changed
- Updated README with new API documentation
- Improved workspace filtering across all pages
### Fixed
- Fixed missing workspace filter in dashboard overview
- Fixed undefined organization in AuthContext
- Fixed missing import in src/lib/db.ts
### Security
- Re-enabled authentication on all API routes
- Added RLS policies for new tables
```
**Changelog Categories**:
- **Added**: New features
- **Changed**: Changes to existing features
- **Deprecated**: Features that will be removed
- **Removed**: Removed features
- **Fixed**: Bug fixes
- **Security**: Security improvements
#### 5. Update Architecture Diagrams
When system architecture changes:
**Text-Based Diagrams** (using Markdown):
```markdown
## System Architecture
```
┌─────────────────┐
│ Next.js App │
│ (React 19 + │
│ App Router) │
└────────┬────────┘
│
┌────┴────┐
│ │
┌───▼───┐ ┌──▼─────────┐
│ API │ │ Dashboard │
│Routes │ │ Pages │
└───┬───┘ └────────────┘
│
┌───▼────────────────┐
│ AI Agent Layer │
│ • Email Agent │
│ • Content Agent │
│ • Orchestrator │
└───┬────────────────┘
│
┌───▼────────────────┐
│ Supabase Layer │
│ • PostgreSQL │
│ • Row Level Sec │
│ • Real-time Subs │
└────────────────────┘
```
```
**Mermaid Diagrams** (for complex flows):
```markdown
## Data Flow
```mermaid
graph TD
A[User Login] --> B[OAuth]
B --> C[Supabase Auth]
C --> D[Dashboard]
D --> E[Load Contacts]
E --> F[Display Hot Leads]
```
```
## Common Tasks
### Task 1: Document New API Endpoint
**Steps**:
1. Read the API route file (`src/app/api/new-endpoint/route.ts`)
2. Extract:
- HTTP methods (GET, POST, etc.)
- Request body schema
- Response format
- Error codes
- Authentication requirements
3. Add to `API_DOCUMENTATION.md`
4. Update README if it's a major feature
5. Add example usage
**Example Output**:
```markdown
### POST /api/agents/analyze
Analyze a contact using Claude AI to extract insights
**Request**:
```json
{
"workspaceId": "uuid",
"contactId": "uuid",
"analysisType": "intelligence" | "sentiment"
}
```
**Response**:
```json
{
"success": true,
"analysis": {
"score": 85,
"insights": "...",
"recommendations": ["..."]
}
}
```
```
### Task 2: Update README After Feature Launch
**Steps**:
1. Read current README
2. Add feature to "Features" section
3. Update "Tech Stack" if new dependencies
4. Add usage example if user-facing
5. Update screenshots if UI changed
6. Verify all links still work
**Example Update**:
```markdown
## Features (UPDATED)
### 🤖 AI Intelligence Layer
- **Email Agent**: Automatically processes incoming emails, extracts intents, analyzes sentiment
- **Content Generator**: Creates personalized marketing content using Claude Opus 4 with Extended Thinking
- **Contact Intelligence**: AI-powered lead scoring (0-100) based on engagement, sentiment, and behavior
- **Orchestrator**: Coordinates multi-agent workflows for complex automation
- **NEW: Bulk Contact Analyzer**: Analyze multiple contacts simultaneously with Claude AI ✨
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.