Automated summary
This skill enables interaction with a self-hosted Gitea Git service using its REST API or the tea CLI tool for repository, issue, and pull request management.
Strengths
- Complete automation of common Gitea operations (creation, update, PR merge)
- Support for both REST API and official `tea` CLI client
- Secure handling via tokens and environment variables
- Full CRUD operations on issues, pull requests, and repositories
Limitations
- Requires the user to provide an API token and the Gitea instance URL
- Depends on the availability of `curl` or `tea` on the execution environment
- Gitea API rate limits may restrict heavy automation
Use this skill when you need to automate project management tasks on a self-hosted Gitea instance (creating repos, tracking tickets, code review).
Do not use it if you are working with GitHub, GitLab, or other Git services with different APIs, or if the user lacks proper API access.
Security analysis
SafeThe skill provides legitimate instructions for interacting with the Gitea API using curl and tea CLI. It advises against hardcoding tokens and recommends using environment variables. No destructive or exfiltrating actions are described.
No concerns found
How this analysis is madeExamples
Create a new private repository named 'my-project' on my Gitea instance at https://gitea.mydomain.com with a description 'My new project'.List all open issues in the repository 'my-org/my-repo' on Gitea.Create a pull request from branch 'feature-x' to 'main' in repository 'my-org/my-repo' with title 'Add feature X' and description 'This PR adds feature X.'name: gitea description: Interact with Gitea (self-hosted Git service) using the Gitea API. Use when working with Gitea repositories, issues, pull requests, or API operations. allowed-tools: Bash, Read, Write, Grep, Glob
Gitea Integration
This skill helps you interact with Gitea, a self-hosted Git service, using its API and CLI tools.
Prerequisites
Before using Gitea API commands, ensure:
- Gitea instance URL is known
- API token is available (can be created in Gitea Settings > Applications > Generate New Token)
curlortea(Gitea CLI) is installed
Common Operations
Repository Management
List Repositories
curl -H "Authorization: token YOUR_TOKEN" \
https://gitea.example.com/api/v1/user/repos
Create Repository
curl -X POST -H "Authorization: token YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"repo-name","description":"Repo description","private":false}' \
https://gitea.example.com/api/v1/user/repos
Get Repository Info
curl -H "Authorization: token YOUR_TOKEN" \
https://gitea.example.com/api/v1/repos/OWNER/REPO
Issue Management
List Issues
curl -H "Authorization: token YOUR_TOKEN" \
https://gitea.example.com/api/v1/repos/OWNER/REPO/issues
Create Issue
curl -X POST -H "Authorization: token YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"Issue title","body":"Issue description"}' \
https://gitea.example.com/api/v1/repos/OWNER/REPO/issues
Update Issue
curl -X PATCH -H "Authorization: token YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"state":"closed"}' \
https://gitea.example.com/api/v1/repos/OWNER/REPO/issues/ISSUE_NUMBER
Pull Request Management
List Pull Requests
curl -H "Authorization: token YOUR_TOKEN" \
https://gitea.example.com/api/v1/repos/OWNER/REPO/pulls
Create Pull Request
curl -X POST -H "Authorization: token YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"PR title","head":"feature-branch","base":"main","body":"PR description"}' \
https://gitea.example.com/api/v1/repos/OWNER/REPO/pulls
Merge Pull Request
curl -X POST -H "Authorization: token YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"Do":"merge"}' \
https://gitea.example.com/api/v1/repos/OWNER/REPO/pulls/PR_NUMBER/merge
User and Organization Management
Get Current User Info
curl -H "Authorization: token YOUR_TOKEN" \
https://gitea.example.com/api/v1/user
List Organization Repositories
curl -H "Authorization: token YOUR_TOKEN" \
https://gitea.example.com/api/v1/orgs/ORG_NAME/repos
Using Gitea CLI (tea)
If the tea CLI is available, you can use it for simpler commands:
# Login
tea login add --url https://gitea.example.com --token YOUR_TOKEN
# List repos
tea repos ls
# Create issue
tea issues create --title "Issue title" --body "Description"
# Create PR
tea pulls create --head feature-branch --base main --title "PR title"
# List PRs
tea pulls ls
Best Practices
- Security: Never hardcode API tokens. Use environment variables or ask the user for credentials.
- Error Handling: Always check API responses for errors before proceeding.
- Rate Limiting: Be mindful of API rate limits on the Gitea instance.
- Validation: Validate repository names, branch names, and other inputs before making API calls.
Workflow Example
When asked to create a new repository and set it up:
- Ask user for Gitea instance URL and verify they have an API token
- Create the repository using the API
- If requested, initialize with README or other files
- Set up repository settings (private/public, description, etc.)
- Provide the repository URL to the user
Environment Variables
Commonly used environment variables:
GITEA_URL: Base URL of the Gitea instanceGITEA_TOKEN: API token for authenticationGITEA_USER: Username for the Gitea instance
API Documentation
For complete API reference, refer to:
- Gitea API Swagger docs:
https://your-gitea-instance.com/api/swagger - Official docs: https://docs.gitea.com/api/1.20/
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/gitea-integration-mmio70uv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/gitea-integration-mmio70uv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/gitea-integration-mmio70uv/download' --output '.skill-downloads/gitea-integration-mmio70uv/SKILL.md.part' && mv '.skill-downloads/gitea-integration-mmio70uv/SKILL.md.part' '.skill-downloads/gitea-integration-mmio70uv/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash, Read, Write, Grep, Glob
Original excerpt: Prerequisites
Before using Gitea API commands, ensure:
- Gitea instance URL is known
- API token is available (can be created in Gitea Settings > Applications > Generate New Token)
curlortea(Gitea CLI) is installed
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/gitea-integration-mmio70uv/SKILL.md' && test -s '.skill-downloads/gitea-integration-mmio70uv/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gitea' && cp -R '.skill-downloads/gitea-integration-mmio70uv' '.claude/skills/gitea'Cursor
test -f '.skill-downloads/gitea-integration-mmio70uv/SKILL.md' && test -s '.skill-downloads/gitea-integration-mmio70uv/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/gitea' && cp -R '.skill-downloads/gitea-integration-mmio70uv' '.cursor/skills/gitea'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/gitea-integration-mmio70uv'openskills read 'gitea-integration-mmio70uv'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/gitea-integration-mmio70uv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.