Skip to content
Skills Library
Programming · Automation

pr-with-docs

/pr-with-docs

Creates production-ready pull requests with automatically updated AGENTS.md and project docs. Use when the user asks to create a PR, make a PR, is ready to merge, has finished a feature and wants a PR, or says they're done for the day with changes to commit.

Licence
MIT
Last repository change
18.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 18.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Creates production-ready pull requests with automatically updated AGENTS.md and project docs. Use when the user asks to create a PR, make a PR, is ready to merge, has finished a feature and wants a PR, or says they're done for the day with changes to commit.

Original author description

Creates production-ready pull requests with automatically updated AGENTS.md and project docs. Use when the user asks to create a PR, make a PR, is ready to merge, has finished a feature and wants a PR, or says they're done for the day with changes to commit.

How it works

  1. 1. Change Analysis
  2. 2. AGENTS.md and Rules Updates
  3. 3. Git Workflow
  4. 4. Pull Request
  5. When to Update AGENTS.md
  6. When NOT to Update AGENTS.md
  7. Quality Before PR
  8. Error Handling
  9. Communication
  10. Output Phases
Original SKILL.md headings · 119 lines, 731 words
SKILL.md preview
---
name: pr-with-docs
description: Creates production-ready pull requests with automatically updated AGENTS.md and project docs. Use when the user asks to create a PR, make a PR, is ready to merge, has finished a feature and wants a PR, or says they're done for the day with changes to commit.
---

# PR with Docs

When the user asks to create a pull request (e.g. "make a PR with these changes", "create a PR for this", "ready to merge", "that's all for today, I added X"), follow this workflow to analyze changes, update AGENTS.md (and .cursor/rules if relevant), run the Git workflow, and create the PR.

## 1. Change Analysis

- Examine all modified, added, and deleted files in the current branch.
- Identify scope: features, bug fixes, refactors.
- Detect changes that require **AGENTS.md** updates:
  - New API endpoints or routes (`apps/api/app/routes/`, `apps/web/src/app/api/`)
  - Database schema or migrations (`apps/api/migrations/`)
  - New environment variables or config (`apps/api/app/core/config.py`, etc.)
  - Architecture or tech stack changes
  - New development commands or workflows
  - Auth flow changes
  - New third-party integrations or dependencies
  - New component or styling patterns

## 2. AGENTS.md and Rules Updates

- Read `AGENTS.md` (and relevant `.cursor/rules/*.mdc`) thoroughly.
- Update sections based on code changes; preserve structure and tone.
- Add new sections only for entirely new concepts.
- Ensure code examples match current patterns; keep terminology and style consistent.
- Do not remove information unless it is obsolete.
- If changes affect only API or only web, consider updating `.cursor/rules/python-api.mdc` or `.cursor/rules/nextjs-web.mdc` as appropriate.

## 3. Git Workflow

**Branch**

- Check branch: `git branch --show-current`.
- If on `main`/`master`, create a feature branch: `<type>/<brief-description>` (e.g. `feature/add-instagram-scraping`, `fix/auth-redirect-loop`, `docs/update-schema-info`). Types: `feature`, `fix`, `docs`, `refactor`, `chore`.
- If already on a feature branch, use it.

**Stash**

- Check uncommitted changes: `git status`.
- If there are uncommitted changes: `git stash push -m "Auto-stash before PR creation"`.
- Restore stash after operations if one was created.

**Commit**

- Stage docs first: `git add AGENTS.md` (and any `.cursor/rules/*.mdc` if changed).
- Commit docs: `git commit -m "docs: update AGENTS.md with [specific changes]"`.
- Stage rest: `git add .`
- Commit code with conventional commits: `<type>(<scope>): <description>` (e.g. `feat(auth): add Google OAuth support`).

**Publish**

- Push: `git push -u origin <branch-name>`.
- Handle push conflicts or errors.

## 4. Pull Request

- Use GitHub CLI: `gh pr create` (or host-appropriate CLI).
- PR description should include:
  - **Summary**: 2–3 sentence overview.
  - **Changes Made**: Bulleted list.
  - **Documentation Updates**: AGENTS.md (and rules) sections updated.
  - **Testing**: How changes were tested (if applicable).
  - **Breaking Changes**: Any breaking changes or migration steps.
  - **Related Issues**: Links if mentioned.
- Title in conventional commits style; add labels (feature, bugfix, documentation, etc.) if possible.

## When to Update AGENTS.md

| Change | Update |
|--------|--------|
| New files in `apps/api/` (routes, models, services) | Repo Layout, Conventions, Key Files |
| New files in `apps/api/migrations/` | Repo Layout, Database/Migrations |
| New env vars in code | Conventions / README env section |
| New packages | Repo Layout / Tech stack |
| New dev commands | Where to Run Commands |
| Auth logic changes | Conventions, Auth |
| New component/API patterns | Conventions, Key Files |
| New third-party integrations | Conventions or new subsection |

## When NOT to Update AGENTS.md

- Minor bug fixes that do not change architecture.
- Internal refactors that do not affect usage patterns.
- Styling tweaks following existing patterns.
- Test file additions (unless they introduce new testing patterns).

## Quality Before PR

1. AGENTS.md is valid Markdown with no syntax errors.
2. Code examples in AGENTS.md use correct syntax.
3. All Git operations completed successfully.
4. Commits follow conventional commits format.
5. PR description is accurate and complete.

## Error Handling

- If Git fails: clear error message and suggested fix.
- If AGENTS.md updates are unclear: ask the user.
- If PR creation fails: give the user the PR description for manual creation.
- Always clean up: restore stash, return to original branch if needed.

## Communication

- Give a short status at each phase.
- Say which AGENTS.md (and rules) sections you are updating and why.
- Show commit messages before committing and PR description before creating.
- Ask for confirmation if changes are ambiguous or potentially breaking.
- Proactively mention related docs that could be updated.

## Output Phases

1. **Analysis**: "Analyzing changes in current branch..."
2. **Documentation**: "Updating AGENTS.md sections: [list]..."
3. **Git**: "Creating branch / committing changes..."
4. **PR**: "Creating pull request..."
5. **Summary**: PR URL and brief summary of actions.

Goal: merge-ready PRs with documentation in sync with the codebase.

Versions

The database has no other skills named pr-with-docs.

Database snapshot: 13.11.2026 · package version a27b9d504825 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 86merge-github-pr
    Use when safely merge GitHub pull requests that are ready
  • 100create-pr
    Creates GitHub pull requests following project conventions. Use when the user wants to create a PR, open a pull request, or publish their changes for review.
  • 90review
    Review uncommitted changes against the project rules before committing. Use when the user asks for a review of their working tree, asks whether changes are ready to commit, or says they are about to commit.
  • 100md-docs
    Manages project documentation: CLAUDE.md, AGENTS.md, README.md, CONTRIBUTING.md, DOCS.md. Use when asked to update, create, or init these context files. Not for general markdown editing.
  • 100create-agents-md
    Use when the user asks to create AGENTS.md, generate agent instructions for a repository, set up CLAUDE.md, or wants to document project conventions for coding agents. Also use when user says "create agents md", "setup agent docs", or "initialize repo for agents".
  • 100pr-review
    Perform a thorough quality review of a pull request or feature branch before merging. Use this skill whenever the user asks to review a PR, check if code is production-ready, assess quality, verify docs are updated, or asks "is this ready to merge?", "review this PR", "check…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.