/tsh-product-engineering:discovering-technical-contextfrom TSH Product Engineering
Systematically discovers project conventions by checking plan context, project instructions, codebase patterns, then external docs. Use before implementing changes in unfamiliar code.
Ships in TSH Product Engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A systematic way to learn how a project does things before changing it, so new code is consistent with what exists and conventions are followed rather than reinvented. The output is often persisted into a plan's Technical Context section, where it saves every later agent from rediscovering the same facts.
This skill is itself a precedence rule: project instructions outrank existing patterns, which outrank industry best practice. Nothing here overrides an explicit instruction from the user.
| Severity | Rule |
|---|---|
| MUST | Check the plan's Technical Context first. If it is populated, use it as-is and re-discover only what it does not cover. |
| MUST | Treat project instructions (CLAUDE.md, path-scoped rules, decision records) as the primary source of truth when they exist. |
| MUST | Mirror existing codebase patterns when instructions are silent — consistency with the code beats theoretical best practice. |
| MUST | Check the exact dependency versions in the project's manifest before consulting external documentation. |
| NEVER | Introduce a new pattern unless the user or the plan explicitly asks for one. |
Copy this checklist and track progress:
Discovery progress:
- [ ] 0. Persisted context in the plan
- [ ] 1. Project instructions
- [ ] 2. Existing codebase patterns
- [ ] 3. External documentation (only if needed)
- [ ] 4. Apply the decision hierarchy
Step 0 — Persisted context. If a *.plan.md exists for the task and its
Technical Context section is populated, use it and skip to Step 4. Run Steps 1–2 only
for aspects it does not cover.
Step 1 — Project instructions. Read, where present: the root CLAUDE.md and any
nested ones near the touched files; path-scoped rules under .claude/rules/;
decision records (docs/decisions/ or similar); CONTRIBUTING.md or equivalent.
These are the primary source for coding standards, architecture and layering,
stack versions, testing strategy, and naming.
Step 2 — Existing codebase patterns. For whatever the instructions leave unstated, find the nearest similar implementation and replicate its approach:
Step 3 — External documentation. Only when neither instructions nor codebase answer (greenfield project, first use of a pattern): read the official docs for the exact versions the manifest pins, apply industry standards (OWASP for security, SOLID and established design patterns where they fit), and document the decisions you make so they become the project's pattern.
Step 4 — Apply the decision hierarchy.
| Context available | Action |
|---|---|
| Project instructions cover it | Follow them strictly — they outrank general best practice. |
| Instructions silent, codebase has a pattern | Mirror the existing pattern exactly. |
| Neither exists | Apply documented best practice and record the decision for the next person. |
Ships in this plugin — if this skill loaded, it is installed.
creating-implementation-plans —
persists what this skill discovers into the plan's Technical Context.What SKILL.md sets; muted values are Claude Code's defaults
Trigger on: 'how does this project do X', 'what are the conventions here', two parts of one repository disagreeing on a convention, choosing the pattern new code or tests should follow, or populating a plan's Technical Context. Conventions only: implementing is orchestrating-feature-implementation, planning is creating-implementation-plans.
8 skills in this plugin
/capturing-ui-evidenceThe mechanical capture contract for UI verification: drives the playwright-cli against the pinned dev server URL to collect actual.png, computed-styles.json and a11y-snapshot.yml into the iteration artifact directory. Works with no design reference at all; when — and only when — the caller supplies a Figma URL, it also exports the shared reference image. Evidence collection only — judging the result is the ui-reviewer agent's job./creating-implementation-plansWrites TSH's implementation plan as a committed file at specifications/<task-id>/<task-name>.plan.md: phased tasks that each name their files and a verifiable Definition of Done, technical context persisted for implementers, explicit parallel groups. Use when a plan, spec, or task breakdown is asked for — a plan kept outside the repository cannot be committed, reviewed in a PR, or read by an implementer subagent./debugging-codeFinds and fixes the root cause of a bug: pins the symptom, reproduces it, secures a failing test — existing, corrected or new — narrows to the cause with evidence rather than plausibility, measures how far the fix reaches before applying it minimally, and keeps the test as a regression guard. Use when code behaves wrongly and the cause is not yet known — load it before reading, searching, or editing the code, because locating the cause is this skill's own first step, not something to do before it.npx claudepluginhub thesoftwarehouse/agentic-collections --plugin tsh-product-engineeringOther plugins' skills for the same job