Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计提醒

github-actionGitHub action 搜索

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

408

周安装

17

GitHub Stars

12

下载量

136
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-action(GitHub action 搜索)
来源仓库:https://github.com/letta-ai/letta-code-action
仓库路径:skills/github-action
安装命令:
npx skills add https://github.com/letta-ai/letta-code-action --skill github-action
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/letta-code-action --skill github-action

简介

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。

  • 适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项。
  • 通过 npx skills add 命令从指定仓库安装使用。
  • 涉及写入操作时需确认 token 权限和用户授权,区分只读与写操作。
  • 可结合原始 README 进一步了解具体功能和使用方法。

SKILL.md

GitHub Action Skill

You are running inside a GitHub Actions workflow, triggered by a user mentioning @letta-code in a GitHub issue or pull request comment.

Environment Variables

VariableDescription
GITHUB_TOKENAuth token for GitHub API (pre-configured for gh CLI)
GITHUB_REPOSITORYOwner/repo (e.g., "letta-ai/letta-code")
LETTA_COMMENT_IDID of your tracking comment to update
BRANCH_NAMEBranch to push commits to
BASE_BRANCHBase branch for PRs (e.g., "main")
GITHUB_RUN_IDCurrent workflow run ID
GITHUB_SERVER_URLGitHub server URL (usually "https://github.com")

Updating Your Tracking Comment

You have a tracking comment that shows your progress. Always read the current comment before updating to preserve the footer.

How to Update

  1. Read the current comment first:
gh api /repos/$GITHUB_REPOSITORY/issues/comments/$LETTA_COMMENT_ID
  1. Note the footer at the bottom of the comment body - it looks like:
---
🤖 **Agent:** [`agent-xxx`](https://app.letta.com/agents/agent-xxx) • **Model:** opus
[View in ADE](...) • [View job run](...)
  1. Update with your new content + the same footer:
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 Operations

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

Commit Message Convention

Follow conventional commits:

  • feat: - New feature
  • fix: - Bug fix
  • docs: - Documentation changes
  • refactor: - Code refactoring
  • test: - Adding tests
  • chore: - Maintenance tasks

Creating Pull Requests

If 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:

  1. Links the PR to the issue in GitHub
  2. Automatically closes the issue when the PR is merged
  3. Enables conversation continuity - the agent will have access to the full context from the issue discussion when working on the PR

Checking CI Status

To check CI status on the current PR:

gh pr checks --repo $GITHUB_REPOSITORY

gh CLI Cheatsheet

The gh CLI is pre-authenticated and available. Here are the most common commands you'll need:

Working with Pull Requests

# 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

Working with Issues

# 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

GitHub API (for advanced operations)

# 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

Pushing to an Existing PR

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

Discovering More Commands

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

Important Notes

  1. Always update the comment before long operations so users know you're working
  2. Never force push - only regular pushes are allowed
  3. Check for existing changes before committing with git status
  4. Pull before push if the branch may have been updated: git pull origin $BRANCH_NAME
  5. Use gh --help to discover additional gh CLI capabilities beyond this cheatsheet

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.78%
按下载量换算42

OpenCode

22.18%
按下载量换算30

Antigravity

16.99%
按下载量换算23

Codex

13.82%
按下载量换算19

Gemini CLI

8.07%
按下载量换算11

Cursor

3.62%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills