OpenClaw Document Completeness Checker Skill
Overview
This skill enables systematic auditing of OpenClaw tasks to verify that all required supporting documents have been generated before execution. It checks the filesystem against a comprehensive document type inventory, identifying gaps in skills, agent definitions, project documentation, issue files, orchestration docs, migration docs, schema definitions, trigger definitions, and adapter configurations.
Trigger Conditions
- User asks to "check document completeness" for a task
- User asks to "verify all docs exist" for a task
- User asks to "audit document generation" or "find missing documents"
- User asks to "validate task readiness" or "check if all docs are generated"
- User asks to "verify skill files exist" or "check agent documentation"
- User asks to "run document readiness check" before task execution
- User asks to "verify cross-references" in issue files
Execution Workflow
Step 1: Task Context Resolution
- Identify the task or issue being checked (by issue ID, project code, or description)
- Resolve the task's project path under
agent-companies-core/projects/
- Parse the issue file's YAML frontmatter to extract:
id — issue identifier
title — issue title
phase — task phase
status — current status
priority — task priority
Assigned Company & Agent — from body section
Required Skills — from body section
Dependencies — from body section
- Build a document requirement profile based on task type and phase
Step 2: Document Type Inventory
Check for the presence of each required document type:
| Document Type |
Path Pattern |
Required For |
| Issue File |
projects/{project-code}/issues/{issue-id}.md |
All tasks |
| Issue Generation Status |
projects/{project-code}/ISSUE-GENERATION-STATUS.md |
Multi-issue projects |
| Project Charter |
projects/{project-code}/PROJECT.md |
All projects |
| Agent Definition |
agents/{company}/agents/{agent-slug}/AGENTS.md |
Assigned agent |
| Agent Skill |
skills/{company}/skills/{skill-slug}/SKILL.md |
Each required skill |
| Company Definition |
companies/{company}/COMPANY.md |
Assigned company |
| Orchestration Doc |
orchestration/OVERVIEW.md |
Cross-agent tasks |
| Execution Tracker |
orchestration/EXECUTION-TRACKER.md |
Multi-step tasks |
| Risk Tracker |
orchestration/RISK-TRACKER.md |
High-risk tasks |
| Learning Integration |
orchestration/LEARNING-INTEGRATION.md |
Learning tasks |
| Migration Plan |
migration/CONCEPT-MAPPING.md |
Migration tasks |
| Schema Definition |
schema/create-tables.sql |
Database tasks |
| Trigger Definition |
triggers/TRIGGER-README.md |
Automation tasks |
| Adapter Config |
adapters/README.md |
Adapter tasks |
Step 3: Document Existence Verification
- For each required document type, check if the file exists at the expected path
- For existing files, verify they contain valid YAML frontmatter (where applicable)
- For existing files, check that frontmatter fields are populated (not empty)
- For existing files, verify required sections are present:
- AGENTS.md: Overview, When To Use, Core Procedures
- SKILL.md: Overview, Execution Workflow, Error Handling
- PROJECT.md: Project Overview, Scope, Objectives
- COMPANY.md: Company Overview, Agents, Services
- Issue files: Description, Acceptance Criteria, Required Skills
- Log each check result: ✅ Present, ⚠️ Present but incomplete, ❌ Missing
Step 4: Skill Completeness Check
- For each skill referenced in the task's
Required Skills section:
- Verify the SKILL.md file exists at
skills/{company}/{skill-slug}/SKILL.md
- Verify the skill has a
description field in its frontmatter
- Verify the skill has
related_skills and related_docs if applicable
- Check that the skill is assigned to the correct agent in the agent's AGENTS.md
- Report any missing or incomplete skill definitions
Step 5: Agent Readiness Check
- Verify the assigned agent's AGENTS.md exists
- Verify the agent has the required skills listed in its frontmatter
skills array
- Verify the agent has a valid
reportsTo field
- Verify the agent has a
description field
- Check that the agent's slug matches the directory name
- Report any agent documentation gaps
Step 6: Cross-Reference Validation
- Verify that issue file references (dependencies, related tickets) point to existing documents
- Verify that skill references in issue files point to existing SKILL.md files
- Verify that agent references in issue files point to existing AGENTS.md files
- Verify that company references point to existing COMPANY.md files
- Report any broken cross-references
Step 7: Report Generation
- Generate a completeness report with:
- Summary: Total required docs, present, incomplete, missing
- By Category: Skills, Agents, Projects, Companies, Orchestration, Schema, Triggers, Adapters
- Missing Documents: List of paths that need to be created
- Incomplete Documents: List of paths with missing content
- Broken References: List of cross-reference issues
- Save report to
reports/document-completeness/{task-id}-completeness-report.md
- Print summary with pass/fail status per category
Step 8: Collaboration Delegation
- Missing agent creation → delegate to
openclaw-ai-agent-creator
- Agent reconciliation → delegate to
openclaw-ai-agent-reconciler
- Documentation content generation → delegate to
documenter-qualityforge-documentation-specialist
- Skill file creation → delegate to
openclaw-ai-agent-creator
Input Parameters
| Parameter |
Type |
Required |
Description |
task_id |
string |
Yes |
Issue ID or task identifier (e.g., PROC-000) |
project_code |
string |
Yes |
Project code (e.g., 01900-procurement) |
agents_dir |
string |
No |
Path to agents directory (default: agent-companies-core/agents) |
projects_dir |
string |
No |
Path to projects directory (default: agent-companies-core/projects) |
skills_dir |
string |
No |
Path to skills directory (default: agent-companies-core/skills) |
companies_dir |
string |
No |
Path to companies directory (default: agent-companies-core/companies) |
output_report_path |
string |
No |
Path for completeness report output |
strict_mode |
boolean |
No |
If true, fail on any missing optional doc (default: false) |
Error Handling
- Task not found: Report error with available project codes
- Project directory missing: Report error and list available projects
- Malformed issue file: Log warning, attempt partial parsing, continue
- No required skills listed: Report warning, check agent's default skills
- Circular references: Detect and report, skip affected checks
- Permission denied: Log error with file path, continue with remaining checks
Skill Name: openclaw-ai-document-completeness-checker
Version: 1.0
Owner: openclaw-ai-document-completeness-checker
Created: 2026-05-01
1---2name: openclaw-ai-document-completeness-checker3description: Audit OpenClaw tasks to verify that all required documents have been generated. Check for completeness of skills (SKILL.md), agent definitions (AGENTS.md), project docs (PROJECT.md), issue files, orchestration docs, migration docs, schema definitions, trigger definitions, and adapter configs. Report missing or incomplete documents with actionable paths.4---56# OpenClaw Document Completeness Checker Skill78## Overview910This skill enables systematic auditing of OpenClaw tasks to verify that all required supporting documents have been generated before execution. It checks the filesystem against a comprehensive document type inventory, identifying gaps in skills, agent definitions, project documentation, issue files, orchestration docs, migration docs, schema definitions, trigger definitions, and adapter configurations.1112## Trigger Conditions1314- User asks to "check document completeness" for a task15- User asks to "verify all docs exist" for a task16- User asks to "audit document generation" or "find missing documents"17- User asks to "validate task readiness" or "check if all docs are generated"18- User asks to "verify skill files exist" or "check agent documentation"19- User asks to "run document readiness check" before task execution20- User asks to "verify cross-references" in issue files2122## Execution Workflow2324### Step 1: Task Context Resolution25261. Identify the task or issue being checked (by issue ID, project code, or description)272. Resolve the task's project path under `agent-companies-core/projects/`283. Parse the issue file's YAML frontmatter to extract:29 - `id` — issue identifier30 - `title` — issue title31 - `phase` — task phase32 - `status` — current status33 - `priority` — task priority34 - `Assigned Company & Agent` — from body section35 - `Required Skills` — from body section36 - `Dependencies` — from body section374. Build a document requirement profile based on task type and phase3839### Step 2: Document Type Inventory4041Check for the presence of each required document type:4243| Document Type | Path Pattern | Required For |44|--------------|--------------|--------------|45| **Issue File** | `projects/{project-code}/issues/{issue-id}.md` | All tasks |46| **Issue Generation Status** | `projects/{project-code}/ISSUE-GENERATION-STATUS.md` | Multi-issue projects |47| **Project Charter** | `projects/{project-code}/PROJECT.md` | All projects |48| **Agent Definition** | `agents/{company}/agents/{agent-slug}/AGENTS.md` | Assigned agent |49| **Agent Skill** | `skills/{company}/skills/{skill-slug}/SKILL.md` | Each required skill |50| **Company Definition** | `companies/{company}/COMPANY.md` | Assigned company |51| **Orchestration Doc** | `orchestration/OVERVIEW.md` | Cross-agent tasks |52| **Execution Tracker** | `orchestration/EXECUTION-TRACKER.md` | Multi-step tasks |53| **Risk Tracker** | `orchestration/RISK-TRACKER.md` | High-risk tasks |54| **Learning Integration** | `orchestration/LEARNING-INTEGRATION.md` | Learning tasks |55| **Migration Plan** | `migration/CONCEPT-MAPPING.md` | Migration tasks |56| **Schema Definition** | `schema/create-tables.sql` | Database tasks |57| **Trigger Definition** | `triggers/TRIGGER-README.md` | Automation tasks |58| **Adapter Config** | `adapters/README.md` | Adapter tasks |5960### Step 3: Document Existence Verification61621. For each required document type, check if the file exists at the expected path632. For existing files, verify they contain valid YAML frontmatter (where applicable)643. For existing files, check that frontmatter fields are populated (not empty)654. For existing files, verify required sections are present:66 - **AGENTS.md**: Overview, When To Use, Core Procedures67 - **SKILL.md**: Overview, Execution Workflow, Error Handling68 - **PROJECT.md**: Project Overview, Scope, Objectives69 - **COMPANY.md**: Company Overview, Agents, Services70 - **Issue files**: Description, Acceptance Criteria, Required Skills715. Log each check result: ✅ Present, ⚠️ Present but incomplete, ❌ Missing7273### Step 4: Skill Completeness Check74751. For each skill referenced in the task's `Required Skills` section:76 - Verify the SKILL.md file exists at `skills/{company}/{skill-slug}/SKILL.md`77 - Verify the skill has a `description` field in its frontmatter78 - Verify the skill has `related_skills` and `related_docs` if applicable79 - Check that the skill is assigned to the correct agent in the agent's AGENTS.md802. Report any missing or incomplete skill definitions8182### Step 5: Agent Readiness Check83841. Verify the assigned agent's AGENTS.md exists852. Verify the agent has the required skills listed in its frontmatter `skills` array863. Verify the agent has a valid `reportsTo` field874. Verify the agent has a `description` field885. Check that the agent's slug matches the directory name896. Report any agent documentation gaps9091### Step 6: Cross-Reference Validation92931. Verify that issue file references (dependencies, related tickets) point to existing documents942. Verify that skill references in issue files point to existing SKILL.md files953. Verify that agent references in issue files point to existing AGENTS.md files964. Verify that company references point to existing COMPANY.md files975. Report any broken cross-references9899### Step 7: Report Generation1001011. Generate a completeness report with:102 - **Summary**: Total required docs, present, incomplete, missing103 - **By Category**: Skills, Agents, Projects, Companies, Orchestration, Schema, Triggers, Adapters104 - **Missing Documents**: List of paths that need to be created105 - **Incomplete Documents**: List of paths with missing content106 - **Broken References**: List of cross-reference issues1072. Save report to `reports/document-completeness/{task-id}-completeness-report.md`1083. Print summary with pass/fail status per category109110### Step 8: Collaboration Delegation111112- **Missing agent creation** → delegate to `openclaw-ai-agent-creator`113- **Agent reconciliation** → delegate to `openclaw-ai-agent-reconciler`114- **Documentation content generation** → delegate to `documenter-qualityforge-documentation-specialist`115- **Skill file creation** → delegate to `openclaw-ai-agent-creator`116117## Input Parameters118119| Parameter | Type | Required | Description |120|-----------|------|----------|-------------|121| `task_id` | string | Yes | Issue ID or task identifier (e.g., `PROC-000`) |122| `project_code` | string | Yes | Project code (e.g., `01900-procurement`) |123| `agents_dir` | string | No | Path to agents directory (default: `agent-companies-core/agents`) |124| `projects_dir` | string | No | Path to projects directory (default: `agent-companies-core/projects`) |125| `skills_dir` | string | No | Path to skills directory (default: `agent-companies-core/skills`) |126| `companies_dir` | string | No | Path to companies directory (default: `agent-companies-core/companies`) |127| `output_report_path` | string | No | Path for completeness report output |128| `strict_mode` | boolean | No | If true, fail on any missing optional doc (default: false) |129130## Error Handling131132- **Task not found**: Report error with available project codes133- **Project directory missing**: Report error and list available projects134- **Malformed issue file**: Log warning, attempt partial parsing, continue135- **No required skills listed**: Report warning, check agent's default skills136- **Circular references**: Detect and report, skip affected checks137- **Permission denied**: Log error with file path, continue with remaining checks138139---140141**Skill Name**: openclaw-ai-document-completeness-checker142**Version**: 1.0143**Owner**: openclaw-ai-document-completeness-checker144**Created**: 2026-05-01