From cogni-ai-github-ops
GitHub CLI (`gh agent-task`) operations for creating, listing, and viewing preview agent tasks. You MUST load this skill when working with the `gh agent-task` command.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cogni-ai-github-ops:gh-agent-taskThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->
Provides usage patterns and expert guidance for the GitHub CLI gh agent-task extension, which manages preview agent tasks on repositories and pull requests.
The agent-task command set is only available in v2.80.0 or later of the GitHub CLI.
This command set is a public preview and is subject to change.
gh (< v2.80.0) that doesn't support the agent-task plugin.gh workflow run instead).gh agent-task create without -F or providing an inline description, causing the CLI to hang waiting for user input.--json and --jq flags.--follow its status, leading to race conditions in automated scripts.create, list, or view).--jq), formatting (--json, --template), or input options (-F) as required.-F) for multi-line instructions instead of inline strings.--jq and --json flags rather than external piping when possible.Create a task from a file (recommended for complex tasks):
gh agent-task create -F task-desc.md
Create a task using stdin:
echo "description" | gh agent-task create -F -
Create a task with a custom agent on a specific base branch:
gh agent-task create "fix errors" --base main --custom-agent my-agent
Create a task and follow logs:
gh agent-task create "build me a new app" --follow
List tasks and format output with JSON/JQ:
gh agent-task list --limit 10 --json id,state,pullRequestNumber --jq '.[] | "\(.id): \(.state)"'
View an agent task by session ID:
gh agent-task view e2fa49d2-f164-4a56-ab99-498090b8fcdf
View an agent task by PR number:
gh agent-task view 12345
View an agent task by PR reference:
gh agent-task view OWNER/REPO#12345
View task and output specific JSON fields:
gh agent-task view 12345 --json id,state,pullRequestNumber
Show agent session logs:
gh agent-task view 12345 --log
gh auth status)..github/agents/.gh agent-task commands are currently in preview and subject to change.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub cogni-ai-ou/cogni-ai-agentic-collections --plugin cogni-ai-github-ops