agentleFS
elidadutra187elidadutra187/claude-skills/skills/harness-repo-structure/SKILL.md

harness-repo-structure

Skill0 starsChanged 5 days agoMITView on GitHub

Use when establishing repository structure following OpenAI harness engineering principles with AGENTS.md as index and knowledge in docs/

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. About 0 are common, 21 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈21

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create and maintain repository structure following OpenAI harness engineering principles where AGENTS.md serves as an index (~100 lines) …

    line 10
  2. Distinctive:

    Create these files in knowledge/ root:

    line 78
  3. Distinctive:

    All index files exist and are up-to-date

    line 92
  4. Distinctive:

    No placeholder text remains in final documents

    line 95
  5. Distinctive:

    Not overwhelmed with initial context

    line 102
  6. Distinctive:

    When creating new structure:

    line 107
  7. Distinctive:

    Create directory structure following pattern

    line 109
  8. Distinctive:

    Create index.md files for each subdirectory

    line 110
  9. Distinctive:

    Create root knowledge files (DESIGN.md, FRONTEND.md, etc.)

    line 111
  10. Distinctive:

    Update AGENTS.md to reference new structure

    line 112
  11. Distinctive:

    Create linters to validate structure

    line 113
  12. Distinctive:

    Add CI checks for mechanical validation

    line 114
  13. Distinctive:

    When reorganizing existing files:

    line 118
  14. Distinctive:

    Update AGENTS.md if needed

    line 125
  15. Distinctive:

    Before considering structure complete:

    line 129
  16. Distinctive:

    All directories exist per pattern

    line 131
  17. Distinctive:

    All index files created

    line 132
  18. Distinctive:

    All root knowledge files created

    line 133
  19. Distinctive:

    If structure validation fails:

    line 168
  20. Distinctive:

    All links are valid

    line 181
  21. Distinctive:

    No placeholder text remains

    line 182

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Harness Repository Structure

Primary Directive

Create and maintain repository structure following OpenAI harness engineering principles where AGENTS.md serves as an index (~100 lines) and knowledge resides in structured docs/ with mechanical validation.

Execution Context

This skill is for AI-to-AI communication to establish repository structure optimized for agent readability. All instructions must be executed systematically without human interpretation.

Repository Structure Pattern

repository-root/
├── skills/           # Agent Skills (SKILL.md format)
├── rules/            # Path-specific coding standards (.instructions.md)
├── agents/           # GitHub Copilot agent definitions
├── workflows/        # Agentic workflows for automation
├── knowledge/        # Knowledge base (structured docs)
│   ├── design-docs/  # Design patterns, core beliefs
│   ├── exec-plans/   # Active/completed execution plans
│   ├── generated/    # Auto-generated documentation
│   ├── product-specs/ # Product specifications
│   ├── references/   # Framework-specific guides
│   ├── DESIGN.md     # Design principles
│   ├── FRONTEND.md   # Frontend patterns
│   ├── PLANS.md      # Planning templates
│   ├── PRODUCT_SENSE.md # Product principles
│   ├── QUALITY_SCORE.md # Quality metrics
│   ├── RELIABILITY.md # Reliability requirements
│   └── SECURITY.md   # Security guidelines
├── .agents/          # Agent conventions
├── install.sh        # Installation script
└── llms.txt          # LLM discoverability

AGENTS.md Requirements

  • Length: Approximately 100 lines
  • Purpose: Index/map to knowledge base, not encyclopedia
  • Content: Quick start, repository map, knowledge base structure links, core principles summary, supported platforms, standards

Knowledge Base Organization

design-docs/

Contains design patterns and operational principles:

  • index.md - Design documents index
  • core-beliefs.md - Agent-centered development principles (golden rules)
  • Pattern documents (agent-skills-patterns.md, ai-development-patterns.md, etc.)

exec-plans/

Contains execution plans and technical debt tracking:

  • active/ - Ongoing implementation plans
  • completed/ - Finished plans
  • tech-debt-tracker.md - Technical debt inventory

generated/

Contains auto-generated documentation (db-schema.md, etc.)

product-specs/

Contains product specifications and requirements

references/

Contains framework-specific guides and external references

Root Knowledge Files

Create these files in knowledge/ root:

  • DESIGN.md - Design principles and patterns
  • FRONTEND.md - Frontend design patterns
  • PLANS.md - Planning templates and methodology
  • PRODUCT_SENSE.md - Product principles and decision framework
  • QUALITY_SCORE.md - Quality metrics and scoring system
  • RELIABILITY.md - Reliability requirements and standards
  • SECURITY.md - Security guidelines

Mechanical Validation

Implement linters and CI checks to validate:

  • Knowledge base structure is correct
  • All index files exist and are up-to-date
  • Links in documentation are valid
  • AGENTS.md remains under 120 lines
  • No placeholder text remains in final documents
  • Front matter follows required format

Progressive Disclosure

  • AGENTS.md provides small, stable entry point
  • Agents instructed on where to look next
  • Not overwhelmed with initial context
  • Mechanical validation ensures knowledge base is current

File Creation Process

When creating new structure:

  1. Create directory structure following pattern
  2. Create index.md files for each subdirectory
  3. Create root knowledge files (DESIGN.md, FRONTEND.md, etc.)
  4. Update AGENTS.md to reference new structure
  5. Create linters to validate structure
  6. Add CI checks for mechanical validation

File Moving Process

When reorganizing existing files:

  1. Identify target category (design-docs, exec-plans, references, etc.)
  2. Move file to appropriate directory
  3. Update index.md files
  4. Update any cross-references
  5. Validate links still work
  6. Update AGENTS.md if needed

Quality Gates

Before considering structure complete:

  • All directories exist per pattern
  • All index files created
  • All root knowledge files created
  • AGENTS.md under 120 lines
  • Mechanical validation linters in place
  • CI checks configured
  • No broken links
  • No placeholder text

Common Patterns

Creating New Design Document

# Create in design-docs/
mkdir -p knowledge/design-docs
# Create document
# Update knowledge/design-docs/index.md

Creating New Execution Plan

# Create in exec-plans/active/ for ongoing
# or exec-plans/completed/ for finished
# Update tech-debt-tracker.md if applicable

Adding Framework Reference

# Create in references/
# Update knowledge/references/index.md

Error Handling

If structure validation fails:

  • Identify missing directories or files
  • Create missing components
  • Update index files
  • Re-run validation
  • Report specific errors with fix suggestions

Success Criteria

Structure is complete when:

  • Repository matches pattern exactly
  • AGENTS.md is concise index (~100 lines)
  • Knowledge base is mechanically validated
  • All links are valid
  • No placeholder text remains
  • CI checks pass

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.