> Forgejo REST API toolkit — manage issues, pull requests, wikis, and repos on a Forgejo server. Use when the agent needs to file an issue, open / review / merge a PR, read or write a wiki page, or look up repo / branch info. One standalone script per resource type. Reads credentials from environment, `~/.skillhone/settings.json`, or `_data/forgejo_config.txt`.
npx skills add https://github.com/Tencent/SkillHone --skill forgejo
Thin wrapper around the Forgejo REST API. Each resource lives in its own script
so the agent can discover and invoke them individually. SkillHone depends on
this as a VCS backend skill, but it stays independent so another backend such as
GitLab or Gitea can provide the same workflow surface.
| Script | Resource | Representative usage |
|--------|----------|----------------------|
| scripts/issue.py | Issues | python3 scripts/issue.py create --title "Bug" |
| scripts/pr.py | Pull requests | python3 scripts/pr.py merge 1 |
| scripts/wiki.py | Wiki pages | python3 scripts/wiki.py get --title "Analysis" |
| scripts/repo.py | Repo metadata | python3 scripts/repo.py branches |
| scripts/summary.py | Aggregate dashboard | python3 scripts/summary.py |
Every script supports --help. Run it before guessing flags.
Resolved in this order (first match wins):
FORGEJO_URL, FORGEJO_TOKEN, FORGEJO_OWNER, FORGEJO_REPO~/.skillhone/settings.json + ~/.skillhone/identities.conf_data/forgejo_config.txt in the current working directoryIf nothing is set, the script exits with a clear message naming the missing variable.
python3 scripts/issue.py list
python3 scripts/issue.py view <N>
python3 scripts/issue.py create --title "Fix: timeout" --body "## Problem\n..."
python3 scripts/issue.py close <N>
python3 scripts/issue.py comment <N> --body "Done"
python3 scripts/pr.py list
python3 scripts/pr.py view <M>
python3 scripts/pr.py create --title "Fix timeout" --head fix/timeout --base main --body "Closes #1"
python3 scripts/pr.py review <M> --approve
python3 scripts/pr.py merge <M> --method merge
python3 scripts/pr.py comment <M> --body "LGTM"
python3 scripts/wiki.py list
python3 scripts/wiki.py get --title "Iteration-1-Observation"
python3 scripts/wiki.py create --title "Page" --body "content"
python3 scripts/wiki.py edit --title "Page" --body "updated content"
python3 scripts/repo.py info
python3 scripts/repo.py branches
python3 scripts/summary.py
# open issues + open PRs + latest observation wiki page
Other skills living under ~/.skillhone/skills/ call these scripts via their
absolute path:
python3 ~/.skillhone/skills/forgejo/scripts/issue.py list
This keeps the VCS backend replaceable. A GitLab or Gitea skill can expose an
equivalent command surface without changing SkillHone's optimization logic.
@ characters break git clone URL injection. Use a token without @ or URL-encode it.merge --method squash is not supported by older Forgejo versions. If you hit Unknown method, fall back to merge..md files in a separate git repo (<repo>.wiki.git). wiki.py hides that, but if you need custom editing, clone the wiki repo directly.--body fields.curl or handcrafted HTTP fromSkillHone workflows. Use these backend scripts so credential loading,
redaction, and backend replacement stay centralized.
cat _data/forgejo_config.txt, ~/.skillhone/settings.json, oridentities.conf to discover credentials. The scripts resolve credentials
internally.
main via any of these scripts. PRs only.Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
Comprehensive GitHub code review with AI-powered swarm coordination
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.
Comprehensive truth scoring, code quality verification, and automatic rollback system with 0.95 accuracy threshold for ensuring high-quality agent outputs and codebase reliability.
GitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line.
GitHub CLI - manage repositories, issues, pull requests, actions, releases, and more from the command line.
You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.
You are a technical debt expert specializing in identifying, quantifying, and prioritizing technical debt in software projects. Analyze the codebase to uncover debt, assess its impact, and create acti
Take tencent/forgejo from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.