pr-implement
Implement a scoped OSS PR.
What this skill does
# PR Implement Skill Fork-based implementation for open source contributions with mandatory isolation check. ## Overview Execute a contribution plan with fork isolation. Ensures PRs are clean and focused by running isolation checks before and during implementation. **Input**: Plan artifact from `$plan` (after `$pr-research`) or repo URL **When to Use**: - Implementing a planned OSS contribution - Need isolation enforcement for clean PRs - After completing `$pr-research` and `$plan` **When NOT to Use**: - Internal project work (use `$implement`) - Haven't planned yet (run `$pr-research` then `$plan` first) --- ## Workflow ``` -1. Prior Work Check -> BLOCKING: Check for competing PRs 0. Input Discovery -> Find plan artifact or repo 1. Fork Setup -> Ensure fork exists and is current 2. Worktree Creation -> Create isolated worktree 3. Isolation Pre-Check -> BLOCK if mixed concerns 4. Implementation -> Execute plan 5. Isolation Post-Check -> BLOCK if scope creep 6. Commit Preparation -> Stage with proper commit type 7. Handoff -> Ready for $pr-prep ``` --- ## Phase -1: Prior Work Check (BLOCKING) ```bash # Search for open PRs on this topic gh pr list -R <owner/repo> --state open --search "<topic>" --limit 10 # Check target issue status gh issue view <issue-number> -R <repo> --json state,assignees ``` | Finding | Action | |---------|--------| | Open PR exists | Coordinate or wait | | Issue assigned | Coordinate or find alternative | | No competing work | Proceed | --- ## Phase 3: Isolation Pre-Check (BLOCKING) ```bash # Commit type analysis git log --oneline main..HEAD | sed 's/^[^ ]* //' | grep -oE '^[a-z]+(\([^)]+\))?:' | sort -u # File theme analysis git diff --name-only main..HEAD | cut -d'/' -f1-2 | sort -u ``` | Check | Pass Criteria | |-------|---------------| | Single commit type | 0 or 1 prefix | | Thematic files | All match plan scope | | Branch fresh | Based on recent main | **DO NOT PROCEED IF PRE-CHECK FAILS.** --- ## Phase 4: Implementation ### Guidelines | Guideline | Why | |-----------|-----| | **Single concern** | Each commit = one logical change | | **Match conventions** | Follow project style exactly | | **Test incrementally** | Run tests after each change | ### Commit Convention ```bash git commit -m "type(scope): brief description Longer explanation if needed. Related: #issue-number" ``` --- ## Phase 5: Isolation Post-Check (BLOCKING) ```bash # Commit type analysis git log --oneline main..HEAD | sed 's/^[^ ]* //' | grep -oE '^[a-z]+(\([^)]+\))?:' | sort -u # Summary stats git diff --stat main..HEAD ``` | Check | Pass Criteria | |-------|---------------| | **Single commit type** | All commits share same prefix | | **Thematic files** | All files relate to PR scope | | **Atomic scope** | Can explain in one sentence | --- ## Phase 7: Handoff ``` Implementation complete. Isolation checks passed. Branch: origin/$BRANCH_NAME Commits: N commits, +X/-Y lines Next step: $pr-prep ``` --- ## Anti-Patterns | DON'T | DO INSTEAD | |-------|------------| | Skip isolation pre-check | Run Phase 3 FIRST | | Skip isolation post-check | Run Phase 5 before push | | Mix concerns in commits | One type prefix per PR | | Implement without plan | Run $pr-research then $plan first | ## Examples ### Implement From Contribution Plan **User says:** "Implement this external PR plan with isolation checks." **What happens:** 1. Run pre-checks for branch and scope isolation. 2. Implement only in planned files/areas. 3. Run post-checks and prepare handoff for PR prep. ### Enforce Single-Concern Commit Set **User says:** "Make sure this branch is still single-purpose before I prep the PR." **What happens:** 1. Inspect commit/file patterns against stated scope. 2. Flag mixed concerns and suggest extraction steps. 3. Produce a clean handoff to `$pr-prep`. ## Troubleshooting | Problem | Cause | Solution | |---------|-------|----------| | Isolation check fails | Unrelated changes on branch | Move unrelated edits to separate branch/PR | | Commits mix concerns | Implementation drifted from plan | Re-split commits by concern and revalidate | | Scope keeps expanding | Weak boundaries in plan | Re-anchor to `Out of Scope` and stop additional changes | | Hard to hand off | Missing summary/test context | Add concise change summary and verification notes | ## Reference Documents - [references/pr-implement.feature](references/pr-implement.feature) — Executable spec: execute plan on fork branch, mandatory isolation before+during, scoped/focused PR (soc-qk4b)
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.