shep

Contributing to Shep with Shep

This is the dogfooding loop. The contributor-onboarding pipeline (spec 097) lets you use Shepโ€™s own agents to land a PR against Shep itself. The same loop works for any OSS project that adopts Shep โ€” nothing here is hardcoded to this repo.

If youโ€™ve never contributed before, start with CONTRIBUTING.md. Come back here once you have a green shep doctor and want to actually ship something.


The Loop

 You pick or       Shep grooms       Shep opens         You merge          Shep welcomes
 file an issue  โ†’  it via agent  โ†’   the PR        โ†’    the PR         โ†’   + adds you to
                                                                            recognition

Five steps, each backed by a use case in application/use-cases/contributors/.


Step 1 โ€” Pick or file an issue

# Browse curated issues
open ./GOOD_FIRST_ISSUES.md

# Or file one yourself using the structured form
# .github/ISSUE_TEMPLATE/feature-request.yml โ€” includes lane / difficulty / acceptance criteria

Issue templates require a lane (docs | agents | ui | cli | infra) and accept a difficulty (goodFirst | easy | medium | hard) plus acceptance criteria as a markdown checklist. The grooming agent reads these directly โ€” fill them in honestly so reviewers donโ€™t have to guess.


Step 2 โ€” Have Shep groom the issue

pnpm dev:cli contributors groom-issue --number <issue>

What this runs:

  1. IExternalIssueFetcher pulls the issue body via the existing GitHub integration.
  2. classify-into-lane.use-case.ts runs deterministic rules (title prefixes, label hints, keyword heuristics) โ€” sub-100 ms when conclusive.
  3. If the rules return ambiguous, the contributor-onboarding agent (registered through CreateCustomAgentUseCase) runs via IAgentExecutorProvider and returns a single ContributorLane enum value.
  4. propose-acceptance-criteria.use-case.ts returns a markdown checklist seeded from your issue body.
  5. The aggregate result ({ lane, difficulty, acceptanceCriteria, suggestedLabels[], welcomeComment? }) is returned to you. Nothing is applied to the issue yet.

If you want Shep to actually apply the labels and post a comment, run with --apply and the supervisor approval gate will surface the proposed mutation for human approval (per spec 093). The default is read-only.


Step 3 โ€” Spin up a worktree and let your agent code

shep feat new "fix: <description from the groomed issue>" --push --pr

Shep:

You stay in your editor. Open the worktree directly to take over manually if you ever want to.


Step 4 โ€” Merge the PR

Reviewer approves; you squash-merge. semantic-release publishes on feat/fix types.


Step 5 โ€” Automatic recognition

On pull_request.closed (merged), .github/workflows/welcome-first-time-contributor.yml invokes a Shep CLI subcommand which calls:

You graduated from User to Contributor. No @all-contributors bot install needed โ€” Shep wrote the file itself.

The next monthly recap (generate-monthly-recap โ†’ publish-monthly-recap, multi-channel via IRecapPublisher adapters: file, Discord, GitHub Discussion) will mention you again.


Why this exists

Spec 097โ€™s premise: Shep is an AI-native SDLC platform; one of its native abilities should be helping itself grow. Outsourcing recognition to a third-party GitHub App, or leaving issue grooming to maintainersโ€™ free time, contradicts that. The whole pipeline is built on existing Shep primitives โ€” the custom-agent rail, the supervisor approval gate, IAgentExecutorProvider, the in-process scheduler โ€” and nothing in it is Shep-repo-specific. Adopting projects get the same loop for free.


Going Deeper