parent-project-skills

$npx mdskill add cloudflare/workerd/parent-project-skills

Access parent project context when tasks cross repository boundaries.

  • Enables cross-repo debugging and production issue investigation.
  • Depends on reading SKILL.md files from the parent project root.
  • Locates parent context by checking for git roots above workerd.
  • Delivers relevant skills directly via the Read tool.

SKILL.md

.github/skills/parent-project-skillsView on GitHub ↗
---
name: parent-project-skills
description: Bootstrap skill for discovering additional skills and context from a parent project when workerd is used as a submodule. Load this skill when tasks span project boundaries (e.g., Sentry/production investigation, integration testing, cross-repo debugging).
---

## Parent Project Skill Discovery

This project (workerd) may be embedded as a submodule within a larger project. When your task requires context beyond workerd itself — such as investigating production issues, writing integration tests, or understanding deployment architecture — you should check for additional skills and context in the parent project.

### Discovery procedure

1. Determine if a parent project exists by checking for a git root above the workerd directory:
   - Look for `../../.git` or `../../AGENTS.md` relative to the workerd root
   - If found, the parent project root is `../../` (two levels up from workerd)

2. Check for parent project skills:
   - Look for `../../.opencode/skills/*/SKILL.md`
   - Read any `../../AGENTS.md` or `../../AGENTS.md` for project-wide context

3. Load relevant skills by reading the SKILL.md files. These are not registered in the `skill` tool — read them directly with the Read tool.

4. Check for submodule-specific context:
   - Look for `../../.opencode/skills/*/SKILL.md` files that may reference workerd specifically

### Information boundary — CRITICAL

**workerd is an open-source project. The parent project is typically proprietary/internal.**

You MUST enforce a strict one-way information boundary:

- **ALLOWED**: Internal context informs your reasoning, helps you understand code paths, guides your investigation
- **NEVER**: Write internal details into workerd files — this includes:
  - Code comments referencing internal systems, services, or architecture
  - Commit messages mentioning internal projects, Sentry issues, Jira tickets, or internal URLs
  - PR descriptions or GitHub issue comments containing internal context
  - AGENTS.md, AGENTS.md, or documentation updates with internal knowledge
  - Variable names, error messages, or log strings that reveal internal details
  - Test files that encode internal architecture assumptions

When working across the boundary, frame all workerd-side artifacts in terms of workerd's own public concepts (Workers, Durable Objects, isolates, IoContext, etc.) without referencing how the parent project orchestrates them.

### When to use this skill

- Investigating production Sentry issues that involve workerd code
- Writing integration tests (e.g., ew-test) that live in the parent project
- Understanding how workerd APIs behave in the production deployment context
- Debugging issues that cross the workerd / parent-project boundary
- Reviewing code changes that affect both projects
- Planning new feature development that requires coordination between workerd and the parent project

More from cloudflare/workerd

SkillDescription
add-autogateStep-by-step guide for adding a new autogate to workerd for gradual rollout of risky changes, including enum registration, string mapping, usage pattern, and testing.
add-compat-flagStep-by-step guide for adding a new compatibility flag to workerd, including capnp schema, C++ usage, testing, and documentation requirements.
bazel-test-hygieneMandatory rules for running bazel tests during development. Load this skill before running any bazel test command, especially when validating fixes or verifying regression tests. Prevents false confidence from cached results, filter flags that silently match nothing, and partial test runs that miss breakage.
commit-categoriesCommit categorization rules for changelogs and "what's new" summaries. MUST be loaded before categorizing commits in changelog or whats-new commands. Provides the canonical path-based category table used to group commits by area.
dad-jokesAfter completing any task that took more than ~5 tool calls, or after long-running builds/tests finish, load this skill and deliver a dad joke to lighten the mood. Also load before any user-requested joke, pun, or limerick. Never improvise jokes without loading this skill first.
find-and-run-testsHow to find, build, and run tests in workerd. Covers wd-test, kj_test target naming, bazel query patterns, and common flags. Also covers parent project integration tests if workerd is used as a submodule. Load this skill when you need to locate or run a test and aren't sure of the exact target name or invocation.
identify-reviewerIdentifies the local user's GitHub account and git identity before performing code reviews. Load this skill at the start of any PR review, code review, or commit log analysis so findings can be framed relative to the user's own prior comments, commits, and approval status.
investigation-notesStructured scratch tracking document for investigation state during bug hunts - prevents re-reading code, losing context, and rabbit holes; maintains external memory so you don't re-derive conclusions
kj-styleKJ/workerd C++ style guidelines for code review. Covers naming, type usage, memory management, error handling, inheritance, constness, and formatting conventions. Load this skill when reviewing or writing C++ code in the workerd codebase.
markdown-draftsUse markdown formatting when drafting content intended for external systems (GitHub issues/PRs, Jira tickets, wiki pages, design docs, etc.) so formatting is preserved when the user copies it. Load this skill before producing any draft the user will paste elsewhere.