quetrex-development-workflow
Each project card should show the current month's API costs with a small trend indicator (up/down arrow).
What this skill does
# Quetrex Development Workflow Skill
**Purpose:** Bootstrap new Claude Code sessions with complete Quetrex project context and enable efficient issue-driven development.
**When to Use:**
- At the start of any new Claude Code session working on Quetrex
- When you need to understand what work is pending
- When creating issues for AI agent automation
- When deciding what to work on next
---
## Quick Reference
### Key Commands
```bash
# Query pending issues
gh issue list --label "ai-feature" --state open
# Query recent completed work
gh pr list --state merged --limit 10
# Create issue for AI agent
gh issue create --template ai-feature.md --label ai-feature
# Trigger workflow manually
gh workflow run "Quetrex AI Agent Worker" -f issue_number=123
```
### Critical Files
| File | Purpose |
|------|---------|
| `CLAUDE.md` | Project context (loaded every session) |
| `.quetrex/status.yml` | Current roadmap position |
| `docs/PROJECT-CHECKLIST.md` | Comprehensive task checklist |
| `.github/workflows/ai-agent.yml` | Agent automation workflow |
| `.claude/scripts/ai-agent-worker.py` | Agent execution script |
---
## 1. What is Quetrex?
**Quetrex** is a voice-first AI agent control center - a mission control dashboard for managing multiple AI-powered projects.
### Core Capabilities
- Voice-driven requirements gathering (OpenAI Realtime API)
- Automatic spec generation (Claude AI)
- Spec approval workflow with versioning
- Automated agent spawning via GitHub Actions
- Real-time monitoring and analytics
- Cost tracking and controls
- Security-first architecture (3-phase model)
### Tech Stack
- **Frontend:** Next.js 15.5, React 19, TypeScript (strict), TailwindCSS, ShadCN UI
- **Backend:** Next.js API Routes, Drizzle ORM, PostgreSQL
- **AI/Voice:** Claude Sonnet 4.5, OpenAI Realtime API, Whisper, TTS
- **Infrastructure:** Vercel Edge Runtime, Docker containers, GitHub Actions
---
## 2. How the Automation Works
### Trigger Flow
```
1. Create GitHub Issue
└─> Use "AI Feature Request" template
└─> Add "ai-feature" label
2. GitHub Actions Triggers
└─> .github/workflows/ai-agent.yml activates
└─> Runs in secure Docker container
3. Agent Worker Executes
└─> Fetches issue details
└─> Loads project context from .quetrex/memory/
└─> Builds comprehensive prompt
└─> Executes via Claude Code CLI
4. Implementation Phase
└─> Agent uses specialized sub-agents:
- orchestrator (complex features)
- test-writer (TDD first)
- implementation (code)
- code-reviewer (quality)
5. Quality Gates
└─> PreToolUse: Blocks dangerous commands
└─> PostToolUse: Validates changes
└─> Stop: Unbypassable final gate
└─> Tests, coverage, linting, build
6. Pull Request Created
└─> Feature branch pushed
└─> PR with detailed description
└─> Ready for human review
```
### Constraints Per Issue
- **Max execution time:** 45 minutes
- **Max API calls:** 150
- **Max file changes:** 75
- **Tests required:** Configurable (currently false)
---
## 3. Creating Effective Issues
### Issue Template Location
`.github/ISSUE_TEMPLATE/ai-feature.md`
### What Makes a Good AI-Agent Issue
**DO:**
- Be specific about what needs to be built
- List acceptance criteria as checkboxes
- Reference existing files/patterns to follow
- Specify testing requirements
- Include priority level
**DON'T:**
- Be vague ("make it better")
- Combine multiple unrelated tasks
- Skip acceptance criteria
- Forget to add `ai-feature` label
### Example Well-Structured Issue
```markdown
## Summary
Add cost tracking display to project cards in dashboard
## Description
Each project card should show the current month's API costs
with a small trend indicator (up/down arrow).
## Acceptance Criteria
- [ ] Cost displayed in USD format ($X.XX)
- [ ] Trend arrow shows increase/decrease from last week
- [ ] Tooltip shows breakdown by provider (OpenAI/Anthropic)
- [ ] Updates every 5 minutes via React Query
## Technical Context
**Relevant Files:**
- `src/components/ProjectCard.tsx` - Add cost display
- `src/services/cost-tracker.ts` - Use existing service
- `src/hooks/useDashboard.ts` - Add cost query
**Patterns to Follow:**
- Use existing stats display pattern from dashboard header
- Follow cost formatting from SettingsPanel
## Testing Requirements
- [x] Unit tests required (cost formatting)
- [x] Integration tests required (API integration)
- [ ] E2E tests required
- [ ] Visual regression tests required
## Priority
- [x] P1 - High (needed soon)
```
---
## 4. Current Project Status
### How to Query Live State
```bash
# Open issues ready for AI agent
gh issue list --label "ai-feature" --state open --json number,title,labels
# Recently completed work
gh pr list --state merged --limit 5 --json number,title,mergedAt
# Current branch status
git status
git log --oneline -5
```
### Status File Location
`.quetrex/status.yml` - Maintained snapshot of:
- Current phase
- Active focus areas
- Completion percentages
- Recent milestones
### Project Checklist
`docs/PROJECT-CHECKLIST.md` - Comprehensive tracking:
- Feature completion by category
- Blockers and dependencies
- Priority levels
- Time estimates
---
## 5. Architecture Decisions
### Key ADRs to Know
| ADR | Decision | Status |
|-----|----------|--------|
| ADR-001 | Browser native echo cancellation | Accepted |
| ADR-002 | Drizzle ORM for Edge Runtime | Accepted |
| ADR-006 | Claude Code CLI over Anthropic SDK | Active |
### Security Architecture (3-Phase)
1. **Phase 1 (Complete):** Docker containerization
- Read-only filesystem, non-root user
- Resource limits, capability dropping
2. **Phase 2 (In Production):** Credential proxy
- No credentials in container environment
- Unix socket validation, audit logging
3. **Phase 3 (Q1 2026):** gVisor migration
- User-space kernel for maximum isolation
### Agent Execution Architecture
**We use Claude Code CLI, NOT direct Anthropic SDK.**
Reasons:
- Built-in specialized agents (orchestrator, test-writer, code-reviewer)
- Quality hooks (PreToolUse, PostToolUse, Stop)
- Automatic updates from Anthropic
- No maintenance burden for tool execution
See: `.claude/docs/ARCHITECTURE-AGENT-WORKER.md`
---
## 6. Quality Enforcement
### 6-Layer Defense System
1. **PreToolUse Hook** - Blocks dangerous commands
2. **PostToolUse Hook** - Validates every file change
3. **Stop Hook** - Unbypassable quality gate
4. **TypeScript Strict** - No `any`, no `@ts-ignore`
5. **Test Coverage** - 75%+ overall, 90%+ services
6. **CI/CD** - Prevents merge if any check fails
### Test Requirements
```
Overall: 75%+ (enforced)
src/services/: 90%+ (enforced)
src/utils/: 90%+ (enforced)
Components: 60%+ (enforced)
```
### TDD Workflow (Mandatory)
1. Write test describing behavior
2. Verify test FAILS (red)
3. Write minimal code to pass
4. Verify test PASSES (green)
5. Refactor while keeping green
---
## 7. Development Patterns
### File Organization
```
src/
├── app/ # Next.js App Router pages
├── components/ # React components
├── services/ # Business logic (90%+ coverage)
├── hooks/ # Custom React hooks
├── lib/ # Third-party integrations
├── db/ # Database schema (Drizzle)
└── schemas/ # Zod validation schemas
```
### Naming Conventions
- Components: `PascalCase.tsx`
- Services: `kebab-case.ts`
- Hooks: `useCamelCase.ts`
- Types: Adjacent `types.ts` or inline
### Import Order
1. External packages
2. Internal components (`@/components/`)
3. Hooks (`@/hooks/`)
4. Services (`@/services/`)
5. Types
---
## 8. Common Workflows
### Starting a New Feature
```bash
# 1. Check what's pending
gh issue list --label "ai-feature" --state open
# 2. If nothing suitable, create new issue
gh issue create --template ai-feature.md
# 3. Add label to trigger automation
gh issue edit <number> --add-label "ai-feature"
# 4. Or work on it directly from here
# (for complex features or when you want mRelated 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.