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/
In this repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- abp-angularSkill
- abp-application-layerSkill
- abp-app-nolayersSkill
- abp-authorizationSkill
- abp-blazorSkill
- abp-cliSkill
- abp-coreSkill
- abp-dddSkill
- abp-dependency-rulesSkill
- abp-development-flowSkill
- abp-ef-coreSkill
- abp-infrastructureSkill
- abp-microserviceSkill
- abp-moduleSkill
- abp-mongodbSkill
- abp-multi-tenancySkill
- abp-mvcSkill
- abp-testingSkill
- aspnet-core-apiSkill
- brainstormingSkill
- building-mcp-serversSkill
- caveman-commitSkill
- caveman-compressSkill
- caveman-reviewSkill
- cavemanSkill
- chrome-devtoolsSkill
- create-agent-harnessSkill
- defuddleSkill
- design-patternsSkill
- dispatching-parallel-agentsSkill
- efcore-patternsSkill
- ef-coreSkill
- entity-framework-coreSkill
- executing-plansSkill
- find-skillsSkill
- finishing-a-development-branchSkill
- fluentui-blazorSkill
- github-issuesSkill
- json-canvasSkill
- memory-mergerSkill
- microsoft-agent-frameworkSkill
- microsoft-code-referenceSkill
- microsoft-docsSkill
- microsoft-skill-creatorSkill
- migrate-aspnetboilerplate-to-abpSkill
- modern-csharp-coding-standardsSkill
- performance-optimizationSkill
- postgresql-code-reviewSkill
- postgresql-optimizationSkill
- premium-frontend-uiSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- rtk-token-killerSkill
- security-jwtSkill
- sonarqube-fixSkill
- sql-code-reviewSkill
- sql-optimizationSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- The first 60 shown.
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
- Distinctive: line 10
Create and maintain repository structure following OpenAI harness engineering principles where AGENTS.md serves as an index (~100 lines) …
- Distinctive: line 78
Create these files in knowledge/ root:
- Distinctive: line 92
All index files exist and are up-to-date
- Distinctive: line 95
No placeholder text remains in final documents
- Distinctive: line 102
Not overwhelmed with initial context
- Distinctive: line 107
When creating new structure:
- Distinctive: line 109
Create directory structure following pattern
- Distinctive: line 110
Create index.md files for each subdirectory
- Distinctive: line 111
Create root knowledge files (DESIGN.md, FRONTEND.md, etc.)
- Distinctive: line 112
Update AGENTS.md to reference new structure
- Distinctive: line 113
Create linters to validate structure
- Distinctive: line 114
Add CI checks for mechanical validation
- Distinctive: line 118
When reorganizing existing files:
- Distinctive: line 125
Update AGENTS.md if needed
- Distinctive: line 129
Before considering structure complete:
- Distinctive: line 131
All directories exist per pattern
- Distinctive: line 132
All index files created
- Distinctive: line 133
All root knowledge files created
- Distinctive: line 168
If structure validation fails:
- Distinctive: line 181
All links are valid
- Distinctive: line 182
No placeholder text remains
≈ “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.
Files
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 discoverabilityAGENTS.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 indexcore-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 planscompleted/- Finished planstech-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:
- Create directory structure following pattern
- Create index.md files for each subdirectory
- Create root knowledge files (DESIGN.md, FRONTEND.md, etc.)
- Update AGENTS.md to reference new structure
- Create linters to validate structure
- Add CI checks for mechanical validation
File Moving Process
When reorganizing existing files:
- Identify target category (design-docs, exec-plans, references, etc.)
- Move file to appropriate directory
- Update index.md files
- Update any cross-references
- Validate links still work
- 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.mdCreating New Execution Plan
# Create in exec-plans/active/ for ongoing
# or exec-plans/completed/ for finished
# Update tech-debt-tracker.md if applicableAdding Framework Reference
# Create in references/
# Update knowledge/references/index.mdError 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
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
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.

