Harness onboarding

From Intense-Visions/harness-engineering · View interactive version

Harness onboarding is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Navigate an existing harness-managed project and generate a structured orientation for new team members. Map the codebase, understand constraints, identify the adoption level, and produce a summary

How to use this skill

Skill file

Harness Onboarding

Navigate an existing harness-managed project and generate a structured orientation for new team members. Map the codebase, understand constraints, identify the adoption level, and produce a summary that gets someone productive fast.

When to Use

Process

Phase 1: READ — Load Project Configuration

  1. Read AGENTS.md. This is the primary source of truth for agent behavior in the project. Note:
  1. Read harness.config.json. Extract:
  1. Read .harness/learnings.md if it exists. This contains hard-won insights from previous sessions — decisions made, gotchas discovered, patterns that worked or failed. Summarize the most recent and most important entries.
  1. Read .harness/state.json if it exists. This reveals what was happening in the last session — current phase, active task, any blockers that were recorded.
  1. Detect the roadmap layout. If docs/roadmap.d/ exists the project uses the sharded roadmap: per-row shards docs/roadmap.d/<slug>.md (plus _meta.md) are canonical and docs/roadmap.md is a generated merge=ours aggregate (do not hand-edit it). New contributors must run the one-time per-clone setup so generated-file merges behave: git config merge.ours.driver true (the .gitattributes merge=ours entry is inert without it — harness validate warns clones that have not run it). Surface this in "Getting Started". If only docs/roadmap.md exists, the project is monolith; if neither, it is file-less or uninitialized. See the adoption guide docs/guides/roadmap-sharding.md.

Phase 2: MAP — Understand the Codebase Structure

Use code_outline to get structural overviews of key modules (functions, classes, exports) without reading full source files. Use code_search to locate patterns, symbols, or conventions across the codebase.

  1. Map the technology stack. Identify from package files, configuration, and code:
  1. Map the architecture. Walk the directory structure and identify:
  1. Map the conventions. Look for patterns in existing code:
  1. Map the constraints. Identify what is restricted:
  1. Map the design system (when present). Look for:

If no design system exists, note this as a potential improvement area.

  1. Map the concerns. Identify areas that need attention:

Graph-Enhanced Context (when available)

When a knowledge graph exists at .harness/graph/, use graph queries for faster, more accurate codebase mapping:

Graph queries produce a complete architecture map in seconds, including transitive relationships that directory inspection misses. Fall back to file-based commands if no graph is available.

When deep-diving into specific modules to explain architecture, use code_unfold to expand specific symbols to their full implementation with dependency context.

Phase 3: ORIENT — Identify Adoption Level and Maturity

  1. Confirm the adoption level matches what harness.config.json declares:
  1. Assess harness health. Run harness validate and note any issues. A project that declares intermediate but fails validation is not truly intermediate.
  1. Identify available skills. List the skills configured for the project. Note which are custom (project-specific) vs. standard (harness-provided). Each skill represents a workflow the team has formalized.

Phase 4: SUMMARIZE — Generate Orientation Output

  1. Produce a structured orientation summary. This is the deliverable. Format:
# Project Orientation: <project-name>

## Overview

<1-2 sentence project description from AGENTS.md>

## Stack

- Language: <language> <version>
- Framework: <framework>
- Tests: <test framework> (`<test command>`)
- Build: <build tool> (`<build command>`)
- Package manager: <pm>

## Architecture

<Brief description of top-level organization>

### Layers

| Layer   | Directories | Can Import From   |
| ------- | ----------- | ----------------- |
| <layer> | <dirs>      | <allowed imports> |

### Key Components

- <component>: <purpose> (<location>)

## Constraints

- <constraint 1>
- <constraint 2>

## Conventions

- <convention 1>
- <convention 2>

## Design System

- **Tokens:** [present/absent] ([token count] tokens in [group count] groups)
- **Aesthetic Intent:** [present/absent] (style: [style], strictness: [level])
- **Platforms:** [web, mobile, or none configured]
- **Accessibility:** [baseline scan result — e.g., "3 warnings, 0 errors"]
- **Design Skills:** [list of available design skills]

## Harness Status

- Adoption level: <level>
- Validation: <pass/fail with summary>
- Available skills: <list>
- State: <current phase/task if applicable>

## Recent Learnings

- <most relevant learnings from .harness/learnings.md>

## Getting Started

1. <first thing to do>
2. <second thing to do>
3. <third thing to do>
  1. Tailor "Getting Started" to the audience. For a new developer: how to set up the dev environment and run tests. For an agent resuming work: what the current task is and what to do next. For a reviewer: where to look and what constraints to check.
  1. Present the summary to the human. Do not write it to a file unless asked. The orientation is a conversation artifact, not a project artifact.

Harness Integration

Success Criteria

Rationalizations to Reject

| Rationalization | Reality |

| -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |

| "I can skip reading .harness/learnings.md since it is just historical notes" | Learnings contain hard-won insights from previous sessions -- decisions made, gotchas discovered, patterns that worked or failed. Skipping them means repeating mistakes already diagnosed. |

| "The harness.config.json says intermediate, so I can report that without validation" | Declared adoption level must be confirmed, not assumed. A project that declares intermediate but fails harness validate is not truly intermediate. |

| "I will map the architecture by reading the directory names since that is faster than checking conventions in actual code" | Conventions must be identified from actual code patterns, not assumed from directory structure. File naming, import style, and error handling can only be verified by reading real source files. |

Examples

Example: Onboarding to an Intermediate TypeScript Project

READ:

Read AGENTS.md:
  - Project: Widget API — REST service for widget lifecycle management
  - Stack: TypeScript, Express, Vitest, PostgreSQL
  - Conventions: zod validation, repository pattern, kebab-case files

Read harness.config.json:
  - Level: intermediate
  - Layers: presentation (src/routes/), business (src/services/), data (src/repositories/)
  - Constraints: presentation → business OK, business → data OK, data → presentation FORBIDDEN

Read .harness/learnings.md:
  - "Date comparison needs UTC normalization — use Date.now()"
  - "The notifications table has a unique constraint on (userId, type) — upsert, don't insert"

Read .harness/state.json:
  - Position: Phase execute, Task 4 of 6
  - Blocker: none

MAP:

Stack: TypeScript 5.3, Express 4, Vitest 1.2, pg (node-postgres)
Architecture: Single package, 3 layers, entry point src/index.ts
Conventions: kebab-case files, co-located tests (.test.ts), barrel exports
Constraints: 3 layers with strict downward-only imports
Concerns: harness validate passes, 47 tests all passing

ORIENT:

Adoption level: intermediate (confirmed — layers defined, constraints enforced)
Skills: harness-tdd, harness-execution, harness-code-review
State: Mid-execution on a 6-task notification feature plan

SUMMARIZE:

Produce orientation with all sections. Getting Started for this context:
1. Read the plan at docs/changes/notifications/plans/2026-03-14-notifications-plan.md
2. Resume execution at Task 4 (state shows Tasks 1-3 complete)
3. Note the UTC normalization gotcha from learnings before working with dates

Example: Onboarding to a Basic Project

READ:

Read AGENTS.md — exists, minimal content
Read harness.config.json — level: basic, no layers defined
No .harness/learnings.md
No .harness/state.json

MAP and SUMMARIZE:

Adoption level: basic (confirmed — no layers or constraints)
Getting Started:
1. Run npm install && npm test to verify the project builds and tests pass
2. Read AGENTS.md for project context and conventions
3. Consider migrating to intermediate level to add layer boundaries
   (use harness-initialize-project to upgrade)

Adoption Maturity

A mental model for where a team sits on the harness adoption curve. Not prescriptive — just orientation.

| Level | Name | Description |

| ----- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

| 1 | Manual | Write CLAUDE.md by hand, run commands manually. Harness is a reference, not a tool. |

| 2 | Repeatable | Skills installed, agent follows conventions consistently. Workflows are codified but enforcement is human-driven. |

| 3 | Automated | Mechanical gates in CI. harness validate runs on PRs. Failures auto-log to .harness/failures.md. The system catches mistakes before humans do. |

| 4 | Self-improving | Learnings accumulate in .harness/learnings.md. Agents reference past failures before planning. Institutional knowledge compounds across sessions and team members. |

Most teams start at Level 1 and move up as they see the value. There is no pressure to reach Level 4 — each level delivers real benefits on its own.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.