cli/docs/cmd/ai/example.md
Snider 363f12f4da docs: move inline YAML to example.md files with fragment links
- Remove inline YAML from all index.md files
- Add fragment links to corresponding example.md sections
- Create ai/example.md for workflow examples
- Add missing configs to example.md files (test.yaml, php.yaml, etc)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 19:20:34 +00:00

1.8 KiB

AI Examples

Workflow Example

Complete task management workflow:

# 1. List available tasks
core ai tasks --status pending

# 2. Auto-select and claim a task
core ai task --auto --claim

# 3. Work on the task...

# 4. Update progress
core ai task:update abc123 --progress 75

# 5. Commit with task reference
core ai task:commit abc123 -m 'implement feature'

# 6. Create PR
core ai task:pr abc123

# 7. Mark complete
core ai task:complete abc123 --output 'Feature implemented and PR created'

Task Filtering

# By status
core ai tasks --status pending
core ai tasks --status in_progress

# By priority
core ai tasks --priority critical
core ai tasks --priority high

# By labels
core ai tasks --labels bug,urgent

# Combined filters
core ai tasks --status pending --priority high --labels bug

Task Updates

# Change status
core ai task:update abc123 --status in_progress
core ai task:update abc123 --status blocked

# Update progress
core ai task:update abc123 --progress 25
core ai task:update abc123 --progress 50 --notes 'Halfway done'
core ai task:update abc123 --progress 100

Git Integration

# Commit with task reference
core ai task:commit abc123 -m 'add authentication'

# With scope
core ai task:commit abc123 -m 'fix login' --scope auth

# Commit and push
core ai task:commit abc123 -m 'complete feature' --push

# Create PR
core ai task:pr abc123

# Draft PR
core ai task:pr abc123 --draft

# PR with labels
core ai task:pr abc123 --labels 'enhancement,ready-for-review'

# PR to different base
core ai task:pr abc123 --base develop

Configuration

Environment Variables

AGENTIC_TOKEN=your-api-token
AGENTIC_BASE_URL=https://agentic.example.com

~/.core/agentic.yaml

token: your-api-token
base_url: https://agentic.example.com
default_project: my-project