skills/github-action/SKILL.md
Skill for GitHub Actions CI environment. Use when running inside a GitHub Actions workflow to update tracking comments, commit code, and interact with GitHub.
npx skillsauth add letta-ai/letta-code-action github-actionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are running inside a GitHub Actions workflow, triggered by a user mentioning @letta-code in a GitHub issue or pull request comment.
| Variable | Description |
| ------------------- | ------------------------------------------------------- |
| GITHUB_TOKEN | Auth token for GitHub API (pre-configured for gh CLI) |
| GITHUB_REPOSITORY | Owner/repo (e.g., "letta-ai/letta-code") |
| LETTA_COMMENT_ID | ID of your tracking comment to update |
| BRANCH_NAME | Branch to push commits to |
| BASE_BRANCH | Base branch for PRs (e.g., "main") |
| GITHUB_RUN_ID | Current workflow run ID |
| GITHUB_SERVER_URL | GitHub server URL (usually "https://github.com") |
You have a tracking comment that shows your progress. Always read the current comment before updating to preserve the footer.
gh api /repos/$GITHUB_REPOSITORY/issues/comments/$LETTA_COMMENT_ID
---
🤖 **Agent:** [`agent-xxx`](https://app.letta.com/agents/agent-xxx) • **Model:** opus
[View in ADE](...) • [View job run](...)
gh api /repos/$GITHUB_REPOSITORY/issues/comments/$LETTA_COMMENT_ID \
-X PATCH \
-f body="Your new content here
---
🤖 **Agent:** ... (copy the footer from step 1)"
Important: Always preserve the footer in every update so users can access the ADE and job run links while you're working.
Git is pre-configured with authentication. Use standard commands:
# Stage changes
git add <files>
# Commit with descriptive message
git commit -m "feat: description of changes"
# Push to the working branch
git push origin $BRANCH_NAME
Follow conventional commits:
feat: - New featurefix: - Bug fixdocs: - Documentation changesrefactor: - Code refactoringtest: - Adding testschore: - Maintenance tasksIf working on an issue (not already a PR), create a PR after pushing:
gh pr create \
--title "feat: description" \
--body "Fixes #<issue_number>
## Summary
- What was changed
## Test Plan
- How to verify
---
Generated with [Letta Code](https://letta.com)" \
--base $BASE_BRANCH \
--head $BRANCH_NAME
IMPORTANT: Always include a closing keyword (Fixes #N, Closes #N, or Resolves #N) in the PR body when the PR addresses an issue. This:
To check CI status on the current PR:
gh pr checks --repo $GITHUB_REPOSITORY
The gh CLI is pre-authenticated and available. Here are the most common commands you'll need:
# List open PRs
gh pr list --repo $GITHUB_REPOSITORY
# View PR details
gh pr view <number> --repo $GITHUB_REPOSITORY
# Checkout an existing PR's branch (to push updates to it)
gh pr checkout <number>
# Check CI status on a PR
gh pr checks <number> --repo $GITHUB_REPOSITORY
# Add a comment to a PR
gh pr comment <number> --body "Your comment" --repo $GITHUB_REPOSITORY
# View PR diff
gh pr diff <number> --repo $GITHUB_REPOSITORY
# List open issues
gh issue list --repo $GITHUB_REPOSITORY
# View issue details
gh issue view <number> --repo $GITHUB_REPOSITORY
# Add a comment to an issue
gh issue comment <number> --body "Your comment" --repo $GITHUB_REPOSITORY
# Get PR review comments
gh api repos/$GITHUB_REPOSITORY/pulls/<number>/comments
# Get PR reviews
gh api repos/$GITHUB_REPOSITORY/pulls/<number>/reviews
# Get issue comments
gh api repos/$GITHUB_REPOSITORY/issues/<number>/comments
If you need to update an existing PR (not the one you're currently on):
# Checkout the PR's branch
gh pr checkout <number>
# Make your changes, then commit and push
git add <files>
git commit -m "fix: description"
git push origin HEAD
The gh CLI has many more capabilities. Use --help to explore:
gh --help # List all commands
gh pr --help # PR-specific commands
gh issue --help # Issue-specific commands
gh api --help # API request help
git statusgit pull origin $BRANCH_NAMEgh --help to discover additional gh CLI capabilities beyond this cheatsheetdevelopment
Skill for handling PR code reviews. Use when triggered by a PR review comment, review request, or when asked to review code changes. Provides workflow for reading review comments, understanding feedback, and iterating on changes.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.