gitea
Skill9 starsChanged 4 months agoMITView on GitHub
Interface with Gitea instances via the tea CLI. Manage repositories, issues, pull requests, releases, labels, milestones, CI/CD actions, webhooks, organizations, wiki pages, SSH keys, comments, and notifications. Use when user mentions "Gitea", "tea CLI", or asks to create/list/edit/close issues, create/review/merge pull requests, manage repos, create releases, view CI/CD workflow runs, manage webhooks, track time, or perform any code hosting task on a Gitea server. Do NOT use for GitHub (use gh CLI) or GitLab.
- Reads credentials
- Installs packages
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- zzci/skillstheir own version, first seen Sep 29, 2026
- microsoft/amplifier-bundle-giteatheir own version, first seen Sep 24, 2026
- Aidas-dev/k8s-agent-skillstheir own version, first seen Jun 11, 2026
- dekoza/oh-my-sloptheir own version, first seen Mar 19, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Aidas-dev/k8s-agent-skills★ 4same name
- dekoza/oh-my-slop★ 4same name
- microsoft/amplifier-bundle-gitea★ 2same name
- zzci/skills★ 2same 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 repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 3 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Run bash scripts/check-tea.sh (from the skill directory) or manually verify:
- Very specific: line 24
If tea is not installed, tell the user to install it (brew install tea on macOS, or see the tea repo).
- Very specific: line 28
When inside a git repository, tea auto-detects the Gitea instance and repo from git remotes.
- Distinctive: line 33
Always check context first:
- Very specific: line 42
Use --output (-o) to control format:
- Very specific: line 48
When processing results in scripts, prefer --output json.
- Very specific: line 96
Use tea comments ls to get comment IDs for edit/delete.
- Very specific: line 321
Create takes the URL as a positional argument (no --url on create).
- Distinctive: line 421
Cause: No Gitea instance registered with tea.
- Very specific: line 422
Solution: Run tea logins add or see references/authentication.md for setup options including token, OAuth, and SSH authentication.
- Very specific: line 430
Verify login URL matches remote: tea logins ls
- Very specific: line 436
Check token validity: tea whoami
- Very specific: line 444
Verify server URL: tea logins ls
- Distinctive: line 445
Check network/VPN connectivity
- Very specific: line 456
Solution: Use --limit and --page for pagination:
“Common” is measured: kept by at least 6 in 10 of the 3 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
Gitea is a self-hosted Git service. This skill uses the tea CLI (v0.15+) to manage Gitea resources. All operations go through tea commands executed via Bash.
Important: Before Any Operation
Run bash scripts/check-tea.sh (from the skill directory) or manually verify:
tea --version && tea logins lsIf tea is not installed, tell the user to install it (brew install tea on macOS, or see the tea repo). Require v0.15 or newer. If no logins exist, guide them through references/authentication.md.
Context Detection
When inside a git repository, tea auto-detects the Gitea instance and repo from git remotes. Override with:
--repo owner/repoto target a specific repository--login nameto use a specific Gitea login--remote nameto use a specific git remote
Always check context first:
git remote -v 2>/dev/null
tea logins ls --output simpleOutput Formatting
Use --output (-o) to control format:
json- best for parsing results programmaticallysimple- compact, one value per linetable- human-readable (default)csv/tsv/yaml- for data export
When processing results in scripts, prefer --output json. When displaying to users, prefer --output table.
Instructions
Issues
List issues:
tea issues ls # open issues in current repo
tea issues ls --state closed # closed issues
tea issues ls --labels bug,urgent # filter by labels
tea issues ls --assignee username # filter by assignee
tea issues ls --milestones "v1.0" # filter by milestone
tea issues ls --keyword "search term" # search by keyword
tea issues ls --kind pulls # PRs, with issue-list filters
tea issues ls --owner my-org # issues across an org
tea issues ls --fields "index,title,state,assignees,labels" --output tableCreate an issue:
tea issues create --title "Bug: login fails" --description "Steps to reproduce..." --labels bug --assignees user1,user2Edit issues:
tea issues edit 42 --title "New title" --add-labels enhancement --add-assignees user2
tea issues edit 42 --milestone "v2.0" --deadline 2025-12-31
tea issues edit 42 --set-assignees alice,bob # replace assignees
tea issues edit 42 --remove-assignees bobClose / reopen:
tea issues close 42
tea issues reopen 42Comments
tea comment 42 "This is fixed in commit abc123" # historical shorthand still works
tea comments add 42 --description "Fixed in abc123"
tea comments ls 42
tea comments edit 1001 --description "Updated comment"
tea comments delete 1001Use tea comments ls to get comment IDs for edit/delete.
Pull Requests
List / inspect:
tea pulls ls # open PRs
tea pulls ls --state closed --output json
tea pulls 15 --output json # detail for one PR (not `pulls ls 15`)
tea issues ls --kind pulls --labels "needs-review" # filter PRs by labeltea pulls ls has no --labels flag.
Create a PR:
tea pulls create --title "Add auth module" --description "Implements OAuth2 flow" --base main --head feature-branch
tea pulls create --title "Fix #42" --base main --head fix-login --labels bugfix --assignees reviewer1
tea pulls create --title "WIP auth" --base main --head wip-auth --draftFor fork-based PRs, use --head username:branch. --draft prepends WIP: (Gitea treats that as a draft).
Edit:
tea pulls edit 15 --title "New title" --add-reviewers alice
tea pulls edit 15 --ready # strip WIP prefix
tea pulls edit 15 --draft # mark draft (idempotent)Review and merge:
tea pulls review 15 # interactive review
tea pulls approve 15 # approve (alias: lgtm)
tea pulls reject 15 "Needs tests" # request changes (reason required)
tea pulls merge 15 --style squash # merge, rebase, squash, rebase-merge
tea pulls merge 15 --style squash --title "feat: auth module (#15)" --message "Implements OAuth2"
tea pulls review-comments 15
tea pulls reply 15 1001 "Fixed"
tea pulls resolve 1001
tea pulls unresolve 1001Checkout a PR locally:
tea pulls checkout 15 # fetches and checks out PR branch
tea pulls checkout 15 --branch # create local branch if missing (boolean flag)
tea pulls clean 15 # delete local+remote branches after mergeRepositories
List and search:
tea repos ls # your repos on default login
tea repos ls --owner my-org
tea repos ls --starred
tea repos search "keyword" # search across instance
tea repos search "keyword" --owner org # search within org
tea repos ls --output json --limit 50Create / edit:
tea repos create --name my-project --description "A new project" --init --gitignores Go --license MIT
tea repos create --name team-project --owner my-org --private
tea repos create-from-template --template owner/template --name new-proj --owner my-org --content --labels
tea repos edit --repo owner/repo --description "Updated" --default-branch maincreate-from-template requires --template and --name. It does not share create's --init / --gitignores flags.
Fork and clone:
tea repos fork --repo owner/repo
tea repos fork --repo owner/repo --owner my-org # fork to org
tea clone owner/repo # clone (auto-detects login)fork does not take a positional slug. A leftover arg is ignored and tea forks the current repo instead.
Delete:
tea repos delete --owner owner --name repo # destructive - confirm with user first--repo is not a delete flag. Use --owner and --name. --force skips the confirmation prompt.
Migrate from external source:
tea repos migrate --name imported-repo --clone-url https://github.com/user/repo.git --service git --mirror--service is one of: git, gitea, gitlab, gogs. There is no github value; use git for GitHub.
Releases
Release subcommands take a tag name, not a numeric ID.
tea releases ls
tea releases create --tag v1.0.0 --title "Release 1.0.0" --note "Release notes here" --target main
tea releases create --tag v1.0.0 --title "v1.0.0" --note-file CHANGELOG.md --asset ./dist/binary.tar.gz
tea releases create --tag v2.0.0-rc1 --prerelease --draft
tea releases edit v1.0.0 --title "Patch Release"
tea releases delete v1.0.0 --confirm # --confirm is required
tea releases assets ls v1.0.0
tea releases assets create v1.0.0 ./path/to/file.zip
tea releases assets delete v1.0.0 file.zip --confirmAsset delete takes the attachment filename, not a numeric asset ID.
Labels and Milestones
Labels (update/delete use --id, not a positional index):
tea labels ls
tea labels create --name "priority:high" --color "#ff0000" --description "High priority"
tea labels update --id 5 --name "priority:critical" --color "#990000"
tea labels delete --id 5Milestones take the title, not a numeric ID:
tea milestones ls
tea milestones create --title "v2.0" --description "Major release" --deadline 2025-06-01
tea milestones close "v2.0"
tea milestones issues "v2.0" # list issues in milestone
tea milestones issues add "v2.0" 42
tea milestones issues remove "v2.0" 42CI/CD Actions
Workflow runs:
tea actions runs ls # list recent runs
tea actions runs ls --status failure --branch main
tea actions runs view 42 # view run details
tea actions runs view 42 --jobs
tea actions runs logs 42 # view run logs
tea actions runs logs 42 --job 1 # specific job logs
tea actions runs logs 42 --follow # stream logs in real time
tea actions runs delete 42 --confirm # cancel/delete a runSecrets and variables:
tea actions secrets ls
tea actions secrets create SECRET_NAME secret_value
tea actions secrets create DB_PASSWORD --file ./secret.txt
tea actions secrets delete SECRET_NAME --confirm
tea actions variables ls
tea actions variables set VAR_NAME var_value
tea actions variables delete VAR_NAME --confirmWorkflows:
tea actions workflows ls
tea actions workflows view ci.yml
tea actions workflows dispatch ci.yml --ref main --input env=prod
tea actions workflows enable ci.yml
tea actions workflows disable ci.yml --confirmOn dispatch, --ref and --repo both claim -r. Always use the long flags.
Organizations
Aliases are organizations, organization, org. There is no orgs alias.
tea org ls
tea org create my-org --description "My organization" --visibility public
tea org delete my-org # destructive - confirm firstThe org name is the first argument. -n / --full-name is the display name, not the slug.
Wiki
tea wiki ls
tea wiki view Home
tea wiki revisions Home
tea wiki create --title "Runbook" --content "On-call steps" --message "Add runbook"
tea wiki edit Home --content "Updated home" --message "Refresh home"
tea wiki delete OldPage --confirmBranches
tea branches ls
tea branches protect main
tea branches unprotect old-main
tea branches rename old-name new-nameTime Tracking
tea times ls '#42' # quote # so the shell does not treat it as a comment
tea times add 42 2h30m # add takes a bare issue index
tea times delete 42 1 # delete time entry
tea times reset 42 # reset all tracked time
tea times ls --mine --total # your times across all reposNotifications
tea notifications ls # unread + pinned
tea notifications ls --mine --states unread # across all repos
tea notifications read 1 # mark as read
tea notifications unread 1 # mark as unread
tea notifications pin 1 # pin notification
tea notifications unpin 1Webhooks
Create takes the URL as a positional argument (no --url on create). Update uses --url.
tea webhooks ls
tea webhooks create https://example.com/hook --events push,pull_request --secret mysecret
tea webhooks update 1 --url https://new-url.com --events push
tea webhooks delete 1 --confirmSSH Keys
tea ssh-keys ls
tea ssh-keys add ~/.ssh/id_ed25519.pub --title laptop
tea ssh-keys delete 12 --confirmOpen in browser
tea open # repo home
tea open 42 # issue or PR by index
tea open pulls # also: issues, wiki, settings, labels, milestonesDirect API Access
For operations not covered by tea subcommands, use tea api:
tea api /repos/{owner}/{repo} # GET (default)
tea api --method PUT /repos/{owner}/{repo}/topics/ci # add topic
tea api "/repos/{owner}/{repo}/commits?sha=main" # list commits (query string, not -f)
tea api --method DELETE /repos/{owner}/{repo}/topics/old-topic # delete topic
tea api --method POST /repos/{owner}/{repo}/issues/42/comments -d '{"body":"Looks good"}'-f / --field is a JSON body field and forces POST unless -X is set. Put GET filters in the URL query string.
{owner} and {repo} are auto-replaced from git context. For full API reference, consult references/workflows.md.
Admin Operations
tea admin users ls # list all users (admin only)
tea admin users create --username bob --email bob@example.com --password-stdin
tea admin users edit bob --admin
tea admin users delete bob --confirmExamples
Example 1: Bug report workflow
User says: "Create a bug report for the login timeout issue and assign it to alice"
tea issues create --title "Bug: Login times out after 30s on slow connections" \
--description "## Steps to reproduce\n1. Connect via slow network\n2. Attempt login\n3. Observe timeout after 30s\n\n## Expected\nGraceful retry or extended timeout\n\n## Actual\nConnection dropped with no error message" \
--labels bug \
--assignees aliceExample 2: Release workflow
User says: "Tag and release v2.1.0 with the changelog"
tea releases create --tag v2.1.0 --title "v2.1.0" --note-file CHANGELOG.md --target mainExample 3: PR review and merge
User says: "Check PR 27 and squash merge it if it looks good"
tea pulls 27 --output json # inspect PR details
tea pulls approve 27 # approve
tea pulls merge 27 --style squash # squash mergeExample 4: Fork contribution workflow
User says: "Fork the gitea/docs repo and create a PR for my typo fix"
tea repos fork --repo gitea/docs
tea clone yourusername/docs
cd docs
git checkout -b fix-typo
# ... user makes changes ...
git add -A && git commit -m "Fix typo in installation guide"
git push origin fix-typo
tea pulls create --title "Fix typo in installation guide" --base main --head yourusername:fix-typo --repo gitea/docsTroubleshooting
Error: "No login configured"
Cause: No Gitea instance registered with tea.
Solution: Run tea logins add or see references/authentication.md for setup options including token, OAuth, and SSH authentication.
Error: "Repository not found" or wrong repo detected
Cause: Git remote doesn't point to a known Gitea login, or repo slug is wrong. Solution:
- Check remotes:
git remote -v - Specify explicitly:
tea issues ls --repo owner/repo --login mylogin - Verify login URL matches remote:
tea logins ls
Error: "401 Unauthorized" or "403 Forbidden"
Cause: Token expired, insufficient scopes, or wrong login. Solution:
- Check token validity:
tea whoami - Regenerate token with required scopes in Gitea web UI
- Update login:
tea logins edit
Error: "Connection refused"
Cause: Gitea server unreachable. Solution:
- Verify server URL:
tea logins ls - Check network/VPN connectivity
- For self-signed TLS:
tea logins add --insecure
Error: "No help topic for 'orgs'" / "flag provided but not defined"
Cause: Stale command form. Common traps: tea orgs (use tea org), tea pulls ls --labels (use tea issues ls --kind pulls --labels), tea repos delete --repo (use --owner and --name), tea repos fork owner/repo (use --repo owner/repo).
Solution: Re-read the matching section above or references/tea-commands.md.
Commands hang or return empty
Cause: API rate limiting or large result sets.
Solution: Use --limit and --page for pagination:
tea issues ls --limit 10 --page 1Additional References
For detailed information, consult these bundled reference files:
references/authentication.md- Login setup, token scopes, multi-instance management, environment variablesreferences/tea-commands.md- Complete flag and option reference for every tea subcommandreferences/workflows.md- Advanced multi-step workflows, tea api patterns, bulk operations
Does 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.

