pr-to-main
Create a PR to the main branch for feature/fix changes in this pnpm + Changesets monorepo
Install / Use
npx skills add breaking-brake/cc-wf-studio --skill pr-to-mainInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
Our assessment of pr-to-main
pr-to-main scores 77/100 on our quality scale, 1285th of 1,657 Automation skills we index.
Its SKILL.md is 5.3 KB long, split into 4 sections and no code examples: a solid amount of guidance for an agent.
With 5,390 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 6 days ago, so pr-to-main is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
pr-to-main compared with similar skills
All 4 of these similar skills score higher than pr-to-main; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| pr-to-main (this skill)by breaking-brake | 77 | 5.4k | 6d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.6k | 11d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.9k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.3k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.1k | today | CLAUDE.md |
Frequently asked questions
- How do I install pr-to-main?
- Run
npx skills add breaking-brake/cc-wf-studio --skill pr-to-main. The install tabs above show the steps for each supported agent. - Which AI agents does pr-to-main work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is pr-to-main safe to use?
- It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is pr-to-main still maintained?
- The repository was last updated 6 days ago, so pr-to-main is actively maintained.
Skill content
View source on GitHubname: pr-to-main description: Create a PR to the main branch for feature/fix changes in this pnpm + Changesets monorepo. Use when the user says "PRを作成", "mainにPR", or wants to submit changes for review. Always run this in the monorepo-aware way — identify the affected package(s) and make sure a changeset exists, because the release pipeline is Changesets-driven.
PR to Main Branch
Create a PR for a feature/fix branch targeting main in the cc-wf-studio monorepo.
This is a pnpm monorepo with four packages (packages/core, packages/mcp, packages/cli, packages/vscode) and versioning is driven by Changesets, not commit messages. Two monorepo facts shape this workflow:
- A release-worthy change must ship with a
.changeset/*.mdfile in the same PR. Without it, the change merges but never gets released — and pending changesets later block promotion to production. - Knowing which package(s) changed drives the changeset target, the PR scope, and the commit scope (e.g.
fix(vscode):).
So the job here is not just "open a PR" — it's "open a PR that the release pipeline can actually act on."
Workflow
-
Gather context (run in parallel):
git status(no-uall)git diff(staged + unstaged) andgit diff origin/main...HEADfor the full branch deltagit log origin/main..HEAD --onelinefor every commit on the branch- Check whether the branch tracks a remote and needs pushing
ls .changeset/*.mdto see whether a changeset already exists
-
Identify scope and type:
- Affected package(s): map changed paths to packages —
packages/core→@cc-wf-studio/core,packages/mcp→@cc-wf-studio/mcp,packages/cli→@cc-wf-studio/cli,packages/vscode→cc-wf-studio(the VSCode extension). Changes outsidepackages/(root config,.github/, docs) usually need no release. - Type: read the commit prefix, allowing an optional scope —
fix:/fix(vscode):→ fix,feat:/feat(core):→ feat,improvement:→ improvement. Review all commits on the branch, not just the latest.
- Affected package(s): map changed paths to packages —
-
Ensure a changeset exists (the monorepo-critical step):
- If a
.changeset/*.mdalready covers this change, confirm it names the right package(s) and bump level, and move on. - If the change should be released and no changeset exists, create one with
pnpm changeset— select the affected package(s) from step 2, choose patch/minor/major, and write a one-line summary (this becomes the CHANGELOG entry). Note: bumping@cc-wf-studio/coreauto-bumps its dependents, so you don't author separate changesets forcli/mcp. - If the change genuinely needs no release (CI-only, tooling, docs), record that intent explicitly with
pnpm changeset add --emptyso the pipeline isn't left guessing. - Why this matters: releases are cut later by manually opening the Release PR (which consumes the accumulated changesets) and merging it — that merge auto-publishes. A PR that lands without the right changeset silently never gets released. (See
docs/release-flow.mdfor the release side — releasing is a human-only action, not something to self-trigger.)
- If a
-
Verify the build is green before opening the PR:
- Run
pnpm check && pnpm buildfrom the repo root (Biome + type-checks, then full compilation). Reviewers and CI expect a clean tree, and catching breakage now is cheaper than after review.
- Run
-
Select the PR template based on type (from step 2):
fix:→assets/fix-template.mdfeat:→assets/feat-template.mdimprovement:→assets/improvement-template.md
-
Create the PR:
- Push the branch with
git push -uif it has no upstream. - Open it with
gh pr create --base main, filling the chosen template.
- Push the branch with
PR Format
- Language: always write the PR title and body in English (repo rule).
- Title —
mainmerges via squash, so the PR title becomes the squash commit subject. It must therefore follow the commit convention:<type>(<scope>): <description>.<type>: matches the change type from step 2 —fix/feat/improvement/docs/refactor/chore/ci.<scope>: the affected package/area from step 2 —vscode,cli,mcp,core(use the directory name, not the npm name). List several as(cli, mcp). Omit the scope for repo-wide changes (root config,.github/, top-level docs), e.g.ci: guard against pending changesets.<description>: imperative mood, no trailing period, concise (aim ≤50 chars per the commit guideline; GitHub appends a(#NN)suffix, with a leading space, on squash — so don't pad it).- Examples (from this repo's history):
fix(vscode): parse Changesets-format CHANGELOG,feat(cli): ccwf install-skills subcommand,docs: add root README for the monorepo.
- Body: in the Changes section, write real monorepo paths (
packages/vscode/src/...,packages/core/...), not generic placeholders. - Mention the changeset in the body so reviewers can see the intended release effect — e.g. "Adds a
patchchangeset forcc-wf-studio" or "No release needed (empty changeset)".
Templates
- fix:
assets/fix-template.md— Problem/Solution with Current vs Expected behavior. - feat:
assets/feat-template.md— Summary/Motivation/Changes. - improvement:
assets/improvement-template.md— Before/After comparison.
Related Skills
Agent-Reach
85.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.1kOpen-source super AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
