liangmiqwq/mo/contributing-to-open-source
Claude Code and agent skill by liangmiqwq/mo
- community
Checking that the SKILL.md file is still in the repository.
Load this skill when you are contributing to an opensource project without write access for the first time (no remote set). Do not load this skill when Git remote is set. Do not load this skill when the user have write access to this repo.
Install
npx vskill@latest install liangmiqwq/mo/contributing-to-open-sourceSKILL.md
The same SKILL.md was published earlier as liangmiqwq/mo/contributing-to-open-source.
Contribute to Open Source
Follow the target repository's contribution instructions first. Use moi(try first) or mo to prepare the repository, then use normal development tools inside its local directory.
Respect the Contribution Boundary
- Do not fork for read-only inspection, explanation, diagnosis, or local experiments.
- Treat a request to implement and submit an upstream contribution as permission to create the required fork. Otherwise, get permission before running
mo forkbecause it changes GitHub state. - Reuse a healthy existing fork instead of creating another one.
- Never push to
upstream. Push contribution branches toorigin. - Preserve uncommitted work, existing branches, and remotes. Do not force-push unless the user explicitly requests it.
Select the Project CLI
Identify the installed CLI by its paired root resolver:
Use moi when moi-get-root succeeds and mo when mo-get-root succeeds. Never select the CLI from the mo executable alone because another program may own that command.
The resolver prints JSON containing the configured code root as rootPath. Managed repositories use:
Run moi setup or mo setup when the selected CLI has no default configuration.
Prepare the Fork
Inspect the expected local path and its Git state before running a mutating command:
Choose the preparation path:
- If the repository is absent, run the selected CLI with the upstream repository:
``bash mo fork <upstream-owner>/<repo> ``
- If a managed local clone has
originpointing to upstream and has noupstreamremote, runmo forkfrom the repository root to convert it in place:
``bash mo fork ``
- If
upstreampoints to the source repository andoriginpoints to the user's fork, reuse the repository without runningmo fork.
- If the path, remotes, or working tree conflict with these cases, stop and resolve the ambiguity without deleting or overwriting user data.
The repo argument may also be a GitHub URL. Use --org <org> only when the user intends to own the fork through that organization, and use --name <name> only when a renamed fork is intentional:
Without those options, accept the interactive defaults for a personal fork with the original repository name unless the user requests something else. Substitute moi for every example when its resolver selected moi.
After a successful fork, verify:
mo fork also makes the local default branch track the upstream default branch.
Create the Contribution
- Read
AGENTS.md,CONTRIBUTING.md, the issue or request, and relevant project documentation. - Confirm the default branch is clean, fetch
upstream, and fast-forward it before branching. - Create a focused contribution branch from the upstream default branch. Follow the target project's branch naming rules.
- Make the smallest complete change and follow the target project's code, test, and documentation conventions.
- Run the relevant validation and inspect the final diff for unrelated changes.
- Commit with the target project's commit convention.
- Push the contribution branch to
origin, neverupstream. - Open the pull request against the upstream repository and its default branch. Follow its PR template, link the relevant issue, describe user-visible behavior, and allow maintainer edits.
Keep the fork relationship explicit when creating the pull request:
Report the local path, branch, validation result, and pull request URL when finished.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/contributing-to-open-source/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/liangmiqwq/mo/contributing-to-open-source)