agentleFS
soumatheusgomessoumatheusgomes/agentville/.claude/skills/github-project/SKILL.md

github-project

Skill9 starsChanged 3 months agoApache-2.0View on GitHub

Use when bootstrapping a repo (apply branch protection before first PR), PRs won't merge or BLOCKED, AI reviewer pushback, auto-merge fails for Dependabot/Renovate, branch protection or rulesets, CI fails, authoring reusable workflows, harden-runner, or CODEOWNERS/PR templates.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use assets/pr-quality.yml.template for auto-approve with required_approving_review_count >= 1.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- vendored from https://github.com/netresearch/github-project-skill/blob/176d9186772916c92d213a2d3292974de7d812cd/skills/github-project/SKILL.md | license: MIT AND CC-BY-SA-4.0 -->

GitHub Project Skill

GitHub repository configuration, troubleshooting, and collaboration workflow best practices.

When to Use

  • Post gh repo create + initial push, before first PR — apply branch protection (REQUIRED, see below)
  • PR won't merge, BLOCKED, or unresolved threads
  • Auto-merge fails for Dependabot/Renovate
  • Solo maintainer auto-approve
  • Branch protection, rulesets, enforce_admins
  • GHA failures or permission issues
  • Signed commit merge (rebase can't auto-sign)
  • CodeQL default vs custom workflows
  • Scorecard (token perms, pinned deps)
  • CODEOWNERS, templates, release labels
  • Fork PR merge base

REQUIRED post gh repo create: scripts/init-branch-protection.sh OWNER/REPO — see references/repo-bootstrap.md (closes snipe-it#17 class).

Quick Diagnostics

PR Won't Merge

gh pr view PR --repo OWNER/REPO \
  --json mergeStateStatus,reviewDecision,mergeable,reviewThreads

Solo Maintainer: PRs Stuck on REVIEW_REQUIRED

Use assets/pr-quality.yml.template for auto-approve with required_approving_review_count >= 1.

Auto-merge Setup

Requires allow_auto_merge, pull_request_target trigger, user.login bot detection, gh pr merge --auto with dynamic strategy. See references/auto-merge-guide.md.

Auto-merge Not Working

gh pr view PR --repo OWNER/REPO --json autoMergeRequest --jq .autoMergeRequest
gh api repos/OWNER/REPO/branches/main/protection/required_pull_request_reviews \
  --jq '.bypass_pull_request_allowances.apps[].slug'

GitHub Actions Failing

gh run list --repo OWNER/REPO --limit 5
gh run view RUN_ID --repo OWNER/REPO --log-failed
gh run rerun RUN_ID --repo OWNER/REPO

Security & Compliance Quick Checks

gh api repos/OWNER/REPO/branches/main/protection \
  --jq '{rcr: .required_conversation_resolution.enabled, admins: .enforce_admins.enabled}'
gh api repos/OWNER/REPO/code-scanning/default-setup --jq '.state'
gh pr view PR --repo OWNER/REPO --json reviewThreads --jq '.reviewThreads'

Merge Strategy Issues

See references/auto-merge-guide.md (signed-commit rebase fixes, workflow-file PRs, Copilot auto-approve race).

Running Scripts

scripts/init-branch-protection.sh OWNER/REPO              # baseline (post gh repo create)
scripts/init-branch-protection.sh OWNER/REPO --from-current-checks   # after first CI
scripts/verify-github-project.sh /path/to/repository      # local-checkout audit

References

TopicReference
Repo bootstrap (post gh repo create)references/repo-bootstrap.md
Repository file layoutreferences/repository-structure.md
Branch migrationreferences/branch-migration.md
Dependabot/Renovatereferences/dependency-management.md
Auto-approve + auto-mergereferences/auto-merge-guide.md
Merge strategy (signed commits)references/merge-strategy.md
Sub-issuesreferences/sub-issues.md
Release labelingreferences/release-labeling.md
gh CLI commandsreferences/gh-cli-reference.md
Polyglot CI checklistsreferences/repo-setup-guide.md
Scorecard, CodeQL, securityreferences/security-config.md
actionlintreferences/actionlint-guide.md
Workflow bash pitfallsreferences/workflow-bash-patterns.md
Fork merge basereferences/pr-commit-cleanup.md
Multi-repo batch opsreferences/multi-repo-operations.md
Reusable workflow securityreferences/reusable-workflow-security.md
Reusable workflow pitfallsreferences/reusable-workflow-pitfalls.md
Org security settingsreferences/org-security-settings.md
Tag validationreferences/tag-validation.md
AI reviewer pushbackreferences/ai-reviewer-pushback.md
Agentic workflowsreferences/agentic-workflows.md

Contributing: https://github.com/netresearch/github-project-skill

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.