agentleFS
deepklaritydeepklarity/harness-kit/.claude/skills/hk-arch-audit/SKILL.md

hk-arch-audit

Skill100 starsChanged 9 months agoMITView on GitHub

Run comprehensive agent-native architecture review with scored principles. Audits a codebase against 8 agent-native architecture principles (Action Parity, Tools as Primitives, Context Injection, Shared Workspace, CRUD Completeness, UI Integration, Capability Discovery, Prompt-Native Features) by launching parallel sub-agents and producing a scored report. Use when the user wants to evaluate how agent-friendly their architecture is, or audit specific principles. Triggers on: 'agent native audit', 'architecture review', 'how agent-friendly is this', or /hk-arch-audit.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/agent-prompts.md in this skill's directory to get the detailed prompt for each sub-agent.

    line 34
  2. Very specific:

    If $ARGUMENTS specifies a single principle, only run that one sub-agent.

    line 38
  3. Distinctive:

    Check compliance against the principle

    line 58
  4. Very specific:

    Read references/agent-prompts.md for the exact prompt to give each agent.

    line 62
  5. Distinctive:

    After all agents complete, compile the summary using this template:

    line 66
  6. Distinctive:

    All 8 sub-agents complete their audits (or the single requested one)

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

/hk-arch-audit — Agent-Native Architecture Review

Conducts a comprehensive review of the codebase against agent-native architecture principles, launching parallel sub-agents for each principle and producing a scored report.

Context

<audit_context> $ARGUMENTS </audit_context>

Core Principles

#PrincipleOne-liner
1Action ParityWhatever the user can do, the agent can do
2Tools as PrimitivesTools provide capability, not behavior
3Context InjectionSystem prompt includes dynamic context about app state
4Shared WorkspaceAgent and user work in the same data space
5CRUD CompletenessEvery entity has full Create, Read, Update, Delete
6UI IntegrationAgent actions immediately reflected in UI
7Capability DiscoveryUsers can discover what the agent can do
8Prompt-Native FeaturesFeatures are prompts defining outcomes, not code

Workflow

Step 1: Load reference material

Read references/agent-prompts.md in this skill's directory to get the detailed prompt for each sub-agent. That file contains the exact instructions, search strategies, and output format for all 8 principle audits.

Step 2: Check for single-principle audit

If $ARGUMENTS specifies a single principle, only run that one sub-agent. Valid argument forms:

ArgumentPrinciple
action parity or 1Action Parity
tools or primitives or 2Tools as Primitives
context or injection or 3Context Injection
shared or workspace or 4Shared Workspace
crud or 5CRUD Completeness
ui or integration or 6UI Integration
discovery or 7Capability Discovery
prompt or features or 8Prompt-Native Features

For single-principle audits, run one Explore sub-agent and present its findings directly — no summary table needed.

Step 3: Launch parallel sub-agents

Launch 8 parallel sub-agents using the Task tool with subagent_type: Explore, one per principle. Each agent should:

  1. Enumerate all relevant instances in the codebase (user actions, tools, contexts, data stores, etc.)
  2. Check compliance against the principle
  3. Provide a specific score in X out of Y (percentage%) format
  4. List specific gaps and recommendations

Read references/agent-prompts.md for the exact prompt to give each agent. Pass the full agent prompt from that file — don't summarize it.

Step 4: Compile summary report

After all agents complete, compile the summary using this template:

## Agent-Native Architecture Review: [Project Name]

### Overall Score Summary

| Core Principle | Score | Percentage | Status |
|----------------|-------|------------|--------|
| Action Parity | X/Y | Z% | STATUS |
| Tools as Primitives | X/Y | Z% | STATUS |
| Context Injection | X/Y | Z% | STATUS |
| Shared Workspace | X/Y | Z% | STATUS |
| CRUD Completeness | X/Y | Z% | STATUS |
| UI Integration | X/Y | Z% | STATUS |
| Capability Discovery | X/Y | Z% | STATUS |
| Prompt-Native Features | X/Y | Z% | STATUS |

**Overall Agent-Native Score: X%**

### Status Legend
- Excellent (80%+)
- Partial (50-79%)
- Needs Work (<50%)

### Top 10 Recommendations by Impact

| Priority | Action | Principle | Effort |
|----------|--------|-----------|--------|

### What's Working Well

[List top 5 strengths]

Success criteria

  • All 8 sub-agents complete their audits (or the single requested one)
  • Each principle has a specific numeric score (X/Y format)
  • Summary table shows all scores and status indicators
  • Top 10 recommendations are prioritized by impact
  • Report identifies both strengths and gaps

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.