gitea-tea
Skill1 starsChanged 8 months agoMITView on GitHub
Official command-line interface for Gitea. Manage issues, PRs, releases, workflows, webhooks, and repos from terminal. Version: tea 0.12.0+ | Gitea API v0.23.2 所有列表命令都有服务端硬限制:最大每页 50 条。 这是 Gitea 服务端配置([api] MAX_RESPONSE_ITEMS = 50),--limit 参数超过 50 会被*静默截断*,不报错也不提示。 方式 1:使用辅助脚本(推荐) 详细说明:参见 pagination.md 💡 完整API参考: - 本地详细文档:api.md(包含100+端点分类、参数说明、Swagger文档使用方法) - 官方在线文档:https:
- Installs packages
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Aidas-dev/k8s-agent-skillstheir own version, first seen Nov 16, 2026
- ldaume/agentic-engineering-harnesstheir own version, first seen Oct 20, 2026
- bootgs/skillstheir own version, first seen Sep 22, 2026
- MaksymStoianov/skillstheir own version, first seen Sep 22, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- bootgs/skills★ 5same name
- Aidas-dev/k8s-agent-skills★ 4same name
- ldaume/agentic-engineering-harness★ 3same name
- MaksymStoianov/skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- agent-browserSkill
- agent-memorySkill
- algorithmic-artSkill
- brainstormingSkill
- changelog-automationSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- docs-changelogSkill
- docs-writerSkill
- docxSkill
- executing-plansSkill
- git-advanced-workflowsSkill
- gitea-teaSkill
- gitea-wikiSkill
- github-to-skillsSkill
- internal-commsSkill
- loopSkill
- mcp-builderSkill
- p10Skill
- p7Skill
- p9Skill
- pdfSkill
- pirate-skillSkill
- pptxSkill
- proSkill
- puaSkill
- skill-creatorSkill
- Skill Evolution ManagerSkill
- skill-managerSkill
- subagent-driven-developmentSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verification-before-completionSkill
- webapp-testingSkill
- workflow-patternsSkill
- writing-plansSkill
- writing-skillsSkill
- xgetSkill
- xlsxSkill
- yesSkill
- element-uiSkill
- hbuilderx-cliSkill
- jql-unicloudSkill
- spa-doc-extractorSkill
- unicloud-common-moduleSkill
- vk-basedao-gettabledataSkill
- vk-basedaoSkill
- vk-custom-componentSkill
- vk-data-formSkill
- vk-data-tableSkill
- vk-pubfn-clientSkill
- vk-pubfnSkill
- vue2-component-type-systemSkill
- vue-cohesion-couplingSkill
- xgetSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 292
Check repository context: Ensure in git repo or use --repo
- Very specific: line 294
Try alternatives: Check ea <command> --help for all options
- Distinctive: line 295
Test with API: Use ea api for advanced operations
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gitea CLI (tea)
Official command-line interface for Gitea. Manage issues, PRs, releases, workflows, webhooks, and repos from terminal.
Version: tea 0.12.0+ | Gitea API v0.23.2
Quick Start
# Install (macOS)
brew install tea
# Install (Linux)
curl -sL https://dl.gitea.io/tea/main/tea-main-linux-amd64 -o tea
chmod +x tea && sudo mv tea /usr/local/bin/
# Authenticate (interactive)
tea login add
# Verify
tea whoami⚠️ 重要:分页硬限制
所有列表命令都有服务端硬限制:最大每页 50 条。
这是 Gitea 服务端配置([api] MAX_RESPONSE_ITEMS = 50),--limit 参数超过 50 会被静默截断,不报错也不提示。
受影响的命令
所有带 --limit 参数的列表命令:
tea issues listtea pulls listtea labels listtea releases listtea milestones listtea branches listtea repos listtea orgs list
错误用法 ❌
# 只会返回前 50 条,静默丢失其他数据
tea issues list --limit 1000 --output json正确用法 ✅
方式 1:使用辅助脚本(推荐)
# 项目已提供现成的分页脚本,自动获取全部数据
python .claude/skills/gitea-tea/scripts/tea_paginate.py \
--command "issues list --state all" \
--repo owner/repo方式 2:手动分页
# 循环获取每页数据并合并
tea issues list --limit 50 --page 1 --output json > page1.json
tea issues list --limit 50 --page 2 --output json > page2.json
# 合并:jq -s 'add' page*.json详细说明:参见 pagination.md
Authentication
# Interactive login (recommended)
tea login add
# Select: Application Token
# Enter Gitea URL and token from User Settings → Applications
# List logins
tea login list
# Set default
tea login default gitea.example.com
# Verify
tea whoamiCommand Reference
Core Operations
| Category | Commands | Details |
| Issues | ea issues, ea i | See issues.md |
| Pull Requests | ea pulls, ea pr | See pulls.md |
| Releases | ea releases, ea r | See releases.md |
| Actions | ea actions | See actions.md |
| Webhooks | ea webhooks, ea hooks | See webhooks.md |
| API | ea api | 直接调用Gitea原生API,支持所有高级操作,常用用法见下方,详细参考 api.md |
| Others | labels, milestones, branches, orgs, notifications, times, comments | See misc.md |
API 命令(高级操作)
当tea内置命令无法满足需求时,可直接通过tea api调用Gitea所有原生API接口:
基础语法
tea api <endpoint> [--options]- 端点自动补全:
/repos/{owner}/{repo}占位符会从当前git仓库上下文自动填充 - 默认前缀:不以
/api/或http开头的端点会自动添加/api/v1/前缀
常用示例
# 查询当前仓库所有issue
tea api /repos/{owner}/{repo}/issues
# 创建新issue(POST方法)
tea api /repos/{owner}/{repo}/issues \
--method POST \
-f title="Bug修复请求" \
-f body="登录页面验证码不显示" \
-f labels="bug,high-priority"
# 更新issue状态(PATCH方法)
tea api /repos/{owner}/{repo}/issues/42 \
--method PATCH \
-f state="closed"
# 获取当前用户信息
tea api /user
# 列出组织所有仓库
tea api /orgs/your-org/repos --limit 100
# 删除指定release
tea api /repos/{owner}/{repo}/releases/10 --method DELETE核心常用端点速查
| 场景 | 端点 | 方法 |
| 查询issue | /repos/{owner}/{repo}/issues/{index} | GET |
| 创建PR | /repos/{owner}/{repo}/pulls | POST |
| 合并PR | /repos/{owner}/{repo}/pulls/{index}/merge | POST |
| 查询仓库协作者 | /repos/{owner}/{repo}/collaborators | GET |
| 获取文件内容 | /repos/{owner}/{repo}/contents/{filepath} | GET |
| 列出Actions密钥 | /repos/{owner}/{repo}/actions/secrets | GET |
| 创建Webhook | /repos/{owner}/{repo}/hooks | POST |
| 标记通知已读 | /notifications/threads/{id} | PATCH |
💡 完整API参考:
- 本地详细文档:api.md(包含100+端点分类、参数说明、Swagger文档使用方法)
- 官方在线文档:https://docs.gitea.io/en-us/api-usage/
Common Patterns
List entities:
tea issues list --output json
tea pulls list --state closed --limit 50
tea releases list --repo owner/repoCreate entities:
tea issues create --title "Bug" --body "Description" --labels bug
tea pulls create --title "Feature" --base main --head feature-branch
tea releases create v1.0.0 --title "v1.0.0" --note "Release notes"View entities:
tea issues 42
tea pulls 20
tea open 42 # Open in browserNon-Interactive Mode (Required for AI Agents)
IMPORTANT: In AI agent environments (no TTY), always use explicit flags:
# Specify output format
tea issues list --output simple
tea pulls list --output json
# Provide ALL arguments
tea issues create --title "Bug" --body "Description"
tea pulls create --title "PR" --head feature --base main
# Use --yes for confirmations
tea pulls merge 5 --yes
tea releases delete v0.9.0 --yes
# Set default login
tea login default <login-name>
# Always specify repo when outside git directory
tea issues list --repo owner/repo
# Use simple output for parsing
tea issues list --output simple --fields index,title,state
# API 命令非交互模式
tea api /repos/{owner}/{repo}/issues --output json
tea api /repos/{owner}/{repo}/issues \
--method POST \
-f title="New Issue" \
-f body="Description" \
--output yamlPrefer explicit flags over interactive prompts.
API 调试技巧
# 启用调试模式,查看完整请求/响应
tea api /user --debug
# 自定义请求头
tea api /repos/{owner}/{repo}/issues \
--header "Accept: application/json" \
--header "X-Custom-Header: value"
# 从文件读取请求体
tea api /repos/{owner}/{repo}/issues \
--method POST \
--input issue.jsonCommon Workflows
Feature Branch → PR
git checkout -b feature/new-feature
git add . && git commit -m "feat: add feature"
git push -u origin feature/new-feature
tea pulls create --title "Add feature" --base main --head feature/new-featureReview & Merge PR
tea pulls checkout 20
tea pulls approve 20 --comment "LGTM!"
tea pulls merge 20 --style squash --message "feat: feature"Create Release with Assets
git tag v1.0.0
git push origin v1.0.0
tea releases create v1.0.0 \
--title "v1.0.0" \
--note-file CHANGELOG.md \
--asset dist/app-linux \
--asset dist/app-darwinSetup CI/CD Secrets
tea actions secrets create DOCKER_USERNAME "myuser"
tea actions secrets create DOCKER_PASSWORD "mypass"
tea actions variables set DEPLOY_ENV "production"Create Webhook for Notifications
tea webhooks create https://hooks.slack.com/services/YOUR/WEBHOOK/URL \
--events push,pull_request \
--secret "webhook-secret"Global Options
--debug, --vvv Enable debug mode
--help, -h Show help
--version, -v Print version
--repo <owner/repo> Override repository
--login <name> Use specific login
--output <format> Output: simple|table|csv|tsv|yaml|jsonButton-up Principle (PUA)
Before claiming failure:
- Verify authentication: ea whoami
- Check repository context: Ensure in git repo or use --repo
- Use non-interactive flags: --output, --yes, explicit arguments
- Try alternatives: Check ea
<command>--help for all options - Test with API: Use ea api for advanced operations
Troubleshooting
"login not found":
tea login list
tea login default <login-name>"repository not found":
# Specify repo explicitly
tea issues list --repo owner/repo
# Or run inside git repositoryInteractive prompts blocking:
# Always use explicit flags
tea <command> --output simple --yesAPI rate limits:
# Use pagination
tea issues list --limit 100 --page 1Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

