devstack: Skill for OpenCode

.opencode/skills/gitea-pr/SKILL.md

gitea-pr is a skill for OpenCode from MartinKuhne/devstack. It costs 22 tokens per session (1,046 once invoked), scanned A, original, MIT.

A guide for creating and managing pull requests on Gitea, a self-hosted Git service, through its web API. A pull request is a request for others to review and merge code changes.

In plain words
What is it for?
Use it to create or inspect pull requests, update their status, add reviewers, manage labels, and handle reviews.
Why use it?
It provides the API requests and fields needed to handle review work without guessing how Gitea expects pull requests to be created or updated.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

This is MartinKuhne/devstack's own configuration. It tells OpenCode how to work on devstack itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything devstack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MartinKuhne/devstack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MartinKuhne/devstack/main/.opencode/skills/gitea-pr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MartinKuhne/devstack

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gitea-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/martinkuhne/devstack/gitea-pr/github.svg)](https://agentmods.dev/skills/martinkuhne/devstack/gitea-pr)
Your own site
<a href="https://agentmods.dev/skills/martinkuhne/devstack/gitea-pr"><img src="https://agentmods.dev/badge/skills/martinkuhne/devstack/gitea-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gitea-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinkuhne/devstack/gitea-pr"><img src="https://agentmods.dev/badge/skills/martinkuhne/devstack/gitea-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01046
Opus 5.5 $0.00009 $0.00418
Sonnet 5.5 $0.00004 $0.00209
Haiku 4.5 $0.00002 $0.00105

Measured 2mo ago against content hash d802cf55c7f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gitea-pr scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls" \
.opencode/skills/gitea-pr/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

I provide guidance for creating and managing pull requests on Gitea, including:

  • Creating pull requests with proper descriptions
  • Updating PR status
  • Adding reviewers
  • Managing PR labels
  • Handling PR reviews

Gitea API Reference

Base URL: {GITEA_URL}/api/v1

Authentication: Authorization: token {GITEA_API_TOKEN}

Create Pull Request

curl -X POST "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls" \
  -H "Authorization: token {GITEA_API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "feat(auth): add OAuth2 support",
    "body": "## Summary\n\nThis PR adds OAuth2 authentication.\n\n## Changes\n- Add Google OAuth2 provider\n- Implement token refresh",
    "head": "feature/123-oauth2",
    "base": "main"
  }'

Get Pull Request

curl "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls/{pr_number}" \
  -H "Authorization: token {GITEA_API_TOKEN}"

List Pull Requests

curl "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls?state=open&limit=50" \
  -H "Authorization: token {GITEA_API_TOKEN}"

Update Pull Request

curl -X PATCH "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls/{pr_number}" \
  -H "Authorization: token {GITEA_API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Updated title",
    "body": "Updated description"
  }'

Add Reviewers

curl -X POST "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls/{pr_number}/requested_reviewers" \
  -H "Authorization: token {GITEA_API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"reviewers": ["username1", "username2"]}'

Merge Pull Request

curl -X POST "{GITEA_URL}/api/v1/repos/{owner}/{repo}/pulls/{pr_number}/merge" \
  -H "Authorization: token {GITEA_API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"merge_when_all_successful": true}'

Pull Request Template

Use this structure for PR descriptions:

## Summary

Brief description of changes (1-3 sentences).

## Type of Change

- [ ] Bug fix
- [ ] New feature
- [ ] Breaking change
- [ ] Documentation update

## Changes

- Change 1
- Change 2
- Change 3

## Testing

Describe testing performed.

## Screenshots (if applicable)

## Related Issues

Closes #123
Fixes #456

## Checklist

- [ ] Code follows project style guidelines
- [ ] Self-review completed
- [ ] Tests added/updated
- [ ] Documentation updated

Read the full file on GitHub · 166 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 166 lines · 22 tokens per session scan A d802cf55c7f9

Subscribe to this mod's changes

gitea-pr is a skill published in the GitHub repository MartinKuhne/devstack (2 stars, last pushed 5d ago), licensed MIT. It adds 22 tokens to every session and 1,046 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gitea-pr compared with skills from other repositories

gitea-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitea-prMartinKuhne/devstackSkill25d agoMITA22OpenCode
prYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA47Claude Code
merge-batchdiegosouzapw/OmniRouteSkill83k6d agoMITA46Claude Code
otto-pr-review-loopomnigent-ai/omnigentSkill11kyesterdayApache-2.0A17Claude Code, Codex
engram-branch-prGentleman-Programming/engramSkill7.8kyesterdayMITA37Claude Code, Codex
github-contributordaymade/claude-code-skillsSkill1.5kyesterdayMITA105Claude Code, Codex
revdiffumputun/revdiffSkill945yesterdayMITA250Claude Code