Skip to content
Skills Library
Programming · Research

discovering-technical-context

/discovering-technical-context

Establishes which conventions a change must follow before it is written, in priority order: the plan's persisted technical context, then project instructions (CLAUDE.md, .claude/rules, decision records), then existing codebase patterns, then external documentation. Use to answer 'how does this project do X' or to fill a plan's Technical Context section.

Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Establishes which conventions a change must follow before it is written, in priority order: the plan's persisted technical context, then project instructions (CLAUDE.md, .claude/rules, decision records), then existing codebase patterns, then external documentation. Use to answer 'how does this project do X' or to fill a plan's Technical Context section.

Triggers from the description

how does this project do X
Original author description

Establishes which conventions a change must follow before it is written, in priority order: the plan's persisted technical context, then project instructions (CLAUDE.md, .claude/rules, decision records), then existing codebase patterns, then external documentation. Use to answer 'how does this project do X' or to fill a plan's Technical Context section.

How it works

  1. When to Use
  2. Applicability and Precedence
  3. Non-negotiable Rules
  4. Discovery Procedure
  5. Related Skills
Original SKILL.md headings · 86 lines, 628 words
SKILL.md preview
---
name: discovering-technical-context
description: "Establishes which conventions a change must follow before it is written, in priority order: the plan's persisted technical context, then project instructions (CLAUDE.md, .claude/rules, decision records), then existing codebase patterns, then external documentation. Use to answer 'how does this project do X' or to fill a plan's Technical Context section."
when_to_use: "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."
---

# Discovering Technical Context

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.

## When to Use

- Before implementing any feature or fix in code you have not worked in recently.
- Before writing tests — unit, integration, or e2e — in an unfamiliar project.
- When two parts of the repository disagree and you must pick a convention.
- When filling the Technical Context section of an implementation plan.

## Applicability and Precedence

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.

## Non-negotiable Rules

| 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. |

## Discovery Procedure

Copy this checklist and track progress:

```text
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:

- **Architecture** — folder structure, layering, module organization.
- **Style and idiom** — naming, formatting, import conventions.
- **Error handling and validation** — how failures are caught, logged, surfaced.
- **Testing** — structure, mocking strategy, assertions, fixtures, test data.
- **Persistence** — migrations, entities, query patterns.
- **API surface** — response shapes, status codes, documentation style.
- **Configuration** — env vars, feature flags, secrets handling.

**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. |

## Related Skills

Ships in this plugin — if this skill loaded, it is installed.

- [`creating-implementation-plans`](../creating-implementation-plans/SKILL.md) —
  persists what this skill discovers into the plan's Technical Context.

Versions

The database has no other skills named discovering-technical-context.

Database snapshot: 13.11.2026 · package version 2c8be0212193 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100context-engineering
    This skill should be used when the user asks about "writing conventions", "codebase context", "HARNESS.md context section", "convention documentation", "how to write enforceable rules", or needs guidance on the Context section of HARNESS.md.
  • 100init-project
    Use this skill for \"initialize project\", \"set up project\", \"scaffold project\", \"create AGENTS.md\", \"create CLAUDE.md\", \"set up rules\", \"create context directory\", \"vibe rules\", \"project templates\", \"init new project\", \"set up development structure\",…
  • 100architecture-decision-records-adr-authoring
    Use this skill when document critical technical decisions, context, and trade-offs using Architecture Decision Records.
  • 95technical-design
    Turn business requirements into a technical plan, data model, interface contracts, and deployment plan. Use to establish technical design before production development, or to design affected modules and interfaces in an existing system.
  • 100start-project
    The technical on-ramp to a fresh project. Where /spark draws out the ESSENCE and refuses to talk tech, start-project does the opposite. It surveys the technical infrastructure up front (existing setup, language, database, cloud/hosting, CI/CD, deployment, testing, package…
  • 90project-documentation
    Project-aware documentation conventions that complement the upstream documentation-writer skill. Use when writing or updating README content, docs pages, user guides, tutorials, or technical blog posts in a repository that provides project context files such as GOALS.md,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.