agentleFS
dannys-code-cornerdannys-code-corner/incan/.agents/skills/yeet-pr/SKILL.md

yeet-pr

Skill73 starsChanged 6 days agoApache-2.0View on GitHub

Publish local Incan or Encero repository changes to GitHub using project standards. Use when the user asks to yeet, publish, commit and PR, push a branch and open a review-ready or draft PR from local changes while requiring the repo-local commit-message and PR-description conventions.

  • Commits and pushes

The file

Show its rules and text

We split this skill into the rules it gives an agent

37 rules. About 0 are common, 25 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈25

    Distinctive · estimate

    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
  1. Very specific:

    Use this skill to publish a local branch without bypassing project standards.

    line 8
  2. Distinctive:

    Before drafting a commit or PR body, read and follow these skills from the target repository when present:

    line 12
  3. Distinctive:

    If either skill is missing, stop and say which standard is unavailable instead of falling back to generic wording.

    line 17
  4. Distinctive:

    If the worktree contains unrelated changes, do not stage everything.

    line 24
  5. Distinctive:

    If there are existing staged changes, inspect git diff --cached --name-only and treat them as user-owned until proven in scope.

    line 25
  6. Distinctive:

    If on main, master, or the remote default branch, create a feature branch before committing.

    line 29
  7. Distinctive:

    If the branch is behind the base, prefer rebasing or merging before opening the PR.

    line 31
  8. Distinctive:

    Use the resulting title as the commit subject.

    line 36
  9. Distinctive:

    Do not invent issue IDs. If none are discoverable, stop and ask for the intended issue or confirm an issue-less commit.

    line 37
  10. Distinctive:

    Use git add -A only when the whole worktree is confirmed in scope.

    line 41
  11. Distinctive:

    Commit with the standards-compliant subject.

    line 42
  12. Distinctive:

    Do not amend or rewrite user commits unless the user explicitly asks.

    line 43
  13. Distinctive:

    If checks already ran before a rebase/merge, rerun at least focused checks after the rebase/merge.

    line 46
  14. Very specific:

    Prefer the repo's documented gate when feasible.

    line 47
  15. Very specific:

    If an acceptance contract was defined by start-work, create-plan, ralph-loop, an issue, or an RFC, verify and record which items were …

    line 48
  16. Distinctive:

    If a check fails from sandbox or credential limitations, rerun with the required approval path or report the blocker clearly.

    line 49
  17. Distinctive:

    Use the final diff against the chosen base branch and the final commit log.

    line 54
  18. Very specific:

    Prefer local git for branch/commit/push operations.

    line 59
  19. Distinctive:

    Prefer the GitHub app/connector for PR creation, PR metadata, comments, labels, reviewers, and other GitHub API operations.

    line 60
  20. Very specific:

    Do not make gh the default PR-creation path.

    line 61
  21. Very specific:

    If gh auth status fails with an invalid/missing token inside the sandbox, treat that as a tooling limitation.

    line 62
  22. Very specific:

    Use gh only for local git-adjacent information that the connector cannot provide, or as a fallback after confirming gh auth status is valid …

    line 63
  23. Distinctive:

    If push fails because the remote branch moved, fetch and resolve rather than force-pushing by default.

    line 67
  24. Distinctive:

    Use a draft only when the work is partial or incomplete, a residual blocker needs resolution before useful review, or the user explicitly …

    line 72
  25. Distinctive:

    Do not treat green CI as a prerequisite for review readiness.

    line 73
  26. Distinctive:

    Prefer the GitHub app/connector for PR creation once the branch is pushed.

    line 77
  27. Very specific:

    Use the remote default branch as base_branch unless the user specified another target.

    line 79
  28. Distinctive:

    Use the standards-compliant PR title and body from the prior steps.

    line 80
  29. Very specific:

    Create a ready-for-review PR when step 9 finds the work review-ready.

    line 81
  30. Very specific:

    If the connector cannot create the PR, use gh pr create with --draft only when step 9 requires it and gh auth status is valid in the …

    line 82
  31. Distinctive:

    Never publish unrelated local changes silently.

    line 86
  32. Very specific:

    Never skip write-commit-message or create-pr-description because another GitHub skill has its own simpler wording.

    line 87
  33. Distinctive:

    Never open a PR with a generic autogenerated body when the repo template exists.

    line 88
  34. Distinctive:

    Never mark a complete, review-ready change as draft merely because CI is pending or because draft feels safer.

    line 89
  35. Very specific:

    Never ask the user to run gh auth login merely because sandboxed gh cannot see a token when the GitHub connector can perform the needed …

    line 90
  36. Distinctive:

    Never leave a command running after reporting completion.

    line 91
  37. Distinctive:

    Commit SHA and subject

    line 99

≈ “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

Yeet PR

Use this skill to publish a local branch without bypassing project standards. It wraps staging, committing, pushing, and opening a draft PR around the repository's own write-commit-message and create-pr-description skills.

Required Standards

Before drafting a commit or PR body, read and follow these skills from the target repository when present:

  • .agents/skills/write-commit-message/SKILL.md
  • .agents/skills/create-pr-description/SKILL.md

If either skill is missing, stop and say which standard is unavailable instead of falling back to generic wording.

Workflow

  1. Confirm the target repo and scope
    • Run git status -sb.
    • Inspect changed filenames and enough diff to classify the work.
    • If the worktree contains unrelated changes, do not stage everything. Ask which files belong in the PR.
    • If there are existing staged changes, inspect git diff --cached --name-only and treat them as user-owned until proven in scope.
  2. Establish the branch and base
    • Determine the current branch with git branch --show-current.
    • If on main, master, or the remote default branch, create a feature branch before committing.
    • Fetch the target base branch when possible.
    • If the branch is behind the base, prefer rebasing or merging before opening the PR. If conflicts occur, resolve them, rerun relevant checks, and mention the conflict resolution.
  3. Use the commit-message standard
    • Follow .agents/skills/write-commit-message/SKILL.md exactly.
    • Infer issue IDs from the branch name first, then from explicit task context.
    • Use the resulting title as the commit subject.
    • Do not invent issue IDs. If none are discoverable, stop and ask for the intended issue or confirm an issue-less commit.
  4. Stage and commit intentionally
    • Stage only in-scope files, preferably by explicit path.
    • Use git add -A only when the whole worktree is confirmed in scope.
    • Commit with the standards-compliant subject.
    • Do not amend or rewrite user commits unless the user explicitly asks.
  5. Verify after the final history shape
    • If checks already ran before a rebase/merge, rerun at least focused checks after the rebase/merge.
    • Prefer the repo's documented gate when feasible. For Incan, use make pre-commit unless the user asked for a narrower publish.
    • If an acceptance contract was defined by start-work, create-plan, ralph-loop, an issue, or an RFC, verify and record which items were covered, skipped as not applicable, or still residual. Do not discover a new contract at publish time; report whether the earlier contract was honored.
    • If a check fails from sandbox or credential limitations, rerun with the required approval path or report the blocker clearly.
  6. Use the PR-description standard
    • Follow .agents/skills/create-pr-description/SKILL.md exactly.
    • Locate the repository PR template.
    • Use the final diff against the chosen base branch and the final commit log.
    • Include RFC lifecycle handling when the diff touches RFC files.
    • Preserve the template checkboxes and closing issue references required by the skill.
  7. Choose the GitHub path
    • Prefer local git for branch/commit/push operations.
    • Prefer the GitHub app/connector for PR creation, PR metadata, comments, labels, reviewers, and other GitHub API operations.
    • Do not make gh the default PR-creation path. In Codex sandboxed environments, the user's GitHub token is often not exposed to gh, so gh auth status can fail even when the GitHub connector is available and authenticated.
    • If gh auth status fails with an invalid/missing token inside the sandbox, treat that as a tooling limitation. Use the GitHub connector where possible instead of asking the user to re-authenticate.
    • Use gh only for local git-adjacent information that the connector cannot provide, or as a fallback after confirming gh auth status is valid in the current execution context.
  8. Push
    • Push the current branch with tracking: git push -u origin <branch>.
    • If push fails because the remote branch moved, fetch and resolve rather than force-pushing by default.
    • Force-push only when the branch is task-owned and the user explicitly approved rewriting it.
  9. Set the PR review state from the work, not a publication default
    • Open the PR ready for review when the accepted scope is complete, the relevant verification has passed, and no unresolved review blockers remain. This is the default for a completed yeet-pr task.
    • Use a draft only when the work is partial or incomplete, a residual blocker needs resolution before useful review, or the user explicitly asks to keep it draft.
    • Do not treat green CI as a prerequisite for review readiness. CI contributes merge evidence; scope completion, targeted tests, docs, and review findings determine whether the change is useful for human review.
    • State the chosen review state and the evidence for it in the final report.
  10. Open the PR at the determined state
  • Prefer the GitHub app/connector for PR creation once the branch is pushed.
  • Derive repository_full_name from origin and head_branch from the current branch.
  • Use the remote default branch as base_branch unless the user specified another target.
  • Use the standards-compliant PR title and body from the prior steps.
  • Create a ready-for-review PR when step 9 finds the work review-ready. Add --draft only when step 9 requires it.
  • If the connector cannot create the PR, use gh pr create with --draft only when step 9 requires it and gh auth status is valid in the current execution context; otherwise stop and report that PR creation is blocked by CLI auth while preserving the pushed branch.

Safety Rules

  • Never publish unrelated local changes silently.
  • Never skip write-commit-message or create-pr-description because another GitHub skill has its own simpler wording.
  • Never open a PR with a generic autogenerated body when the repo template exists.
  • Never mark a complete, review-ready change as draft merely because CI is pending or because draft feels safer. Draft status must communicate incomplete or intentionally withheld work.
  • Never ask the user to run gh auth login merely because sandboxed gh cannot see a token when the GitHub connector can perform the needed GitHub operation.
  • Never leave a command running after reporting completion.
  • Report any dirty leftovers outside the committed PR scope.

Final Report

End with:

  • Branch name
  • Commit SHA and subject
  • PR URL
  • PR review state and its rationale
  • Base branch
  • Verification commands and results
  • Acceptance contract coverage when one exists
  • Any residual risks, dirty files, or auth/tooling fallbacks

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.