Skip to content

docs: ottochain-new-app OpenClaw skill specification#106

Merged
scasplte2 merged 1 commit into
scasplte2:mainfrom
ottobot-ai:docs/ottochain-new-app-skill-spec
Jun 12, 2026
Merged

docs: ottochain-new-app OpenClaw skill specification#106
scasplte2 merged 1 commit into
scasplte2:mainfrom
ottobot-ai:docs/ottochain-new-app-skill-spec

Conversation

@ottobot-ai

Copy link
Copy Markdown
Collaborator

Summary

Specification for the ottochain-new-app OpenClaw AgentSkill — packaging the Adding a New App guide (PR #86) into a reusable skill that any agent can invoke.

Trello: [skill] Create 'ottochain-new-app' skill (6987a9d1)

What This Spec Defines

Skill File Structure

/home/euler/.openclaw/skills/ottochain-new-app/
├── SKILL.md                          # Trigger phrases + step-by-step procedure  
└── templates/
    ├── state-machine.json            # SM definition (proto wire format, verified)
    ├── bridge-route.ts               # Express routes with Zod + submitTransaction
    ├── fiber-definition.ts           # Traffic gen FiberDefinition
    ├── explorer-component.tsx        # Indexer REST UI stub
    └── checklist.md                  # 6-step deployment checklist

Key Decisions

  • Proto wire format: State IDs as { "id": { "value": "STATE" } } — verified against ottochain-sdk/src/apps/contracts/
  • waitForSequence: Mandatory after every state-changing transition — race condition documented
  • $epochProgress not $timestamp** for deadline guards — documented in Common Mistakes
  • Indexer REST (not gateway GraphQL) for basic explorer listing — no new gateway dependencies
  • Schema field in initialData — required for indexer filtering

12 TDD Test Cases

Tests verify all template patterns match real code. @code writes failing tests first, then implements skill.

Source Accuracy Table

Every pattern traced back to a specific file in /home/euler/repos/.

Next Step

→ 🧪 Test Definition: @code writes 12 failing tests, then implements skill files

@ottobot-ai

Copy link
Copy Markdown
Collaborator Author

🤖 Quality Score: 87/100

PR Agent Review — Tier 1 Gate

Category Score Notes
Description quality 21/25 Clear file structure, key decisions documented, 12 TDD test cases, source accuracy table
CI status 25/25 All checks green
Content quality 22/25 Comprehensive skill spec with templates, proto wire format verified
Commit compliance 12/15 Clean lowercase subject, within 72 chars
Hygiene 7/10 Good branch name, focused single-file change

Score 87/100 meets threshold (80+). Promoting to human review.

CC: @scasplte2 for final review.

@ottobot-ai ottobot-ai added the tier-2-review Needs human review before merge label Mar 13, 2026
@ottobot-ai ottobot-ai force-pushed the docs/ottochain-new-app-skill-spec branch from e8fb184 to fb4815e Compare March 23, 2026 10:12
@ottobot-ai ottobot-ai force-pushed the docs/ottochain-new-app-skill-spec branch 2 times, most recently from 51a5337 to 2f1d294 Compare March 23, 2026 23:52
@ottobot-ai ottobot-ai force-pushed the docs/ottochain-new-app-skill-spec branch from 2f1d294 to 51a5337 Compare March 24, 2026 15:47
@ottobot-ai

Copy link
Copy Markdown
Collaborator Author

⚠️ Merge conflict — manual resolution required

PR size: 1,665 lines (too large for automated conflict resolution)
Base branch: main

@scasplte2 — please rebase manually when ready.

Spec for packaging the 'Adding a New App' guide into a reusable
OpenClaw AgentSkill. Covers:
- SKILL.md with 7 trigger phrases and 5-step procedure
- 5 template files (SM JSON, bridge route, fiber definition,
  explorer component, deployment checklist)
- 12 TDD test cases verifying all patterns against real code
- Source accuracy table mapping each pattern to repo files

Refs: Trello card 6987a9d11f69072dafc1b699
@ottobot-ai ottobot-ai force-pushed the docs/ottochain-new-app-skill-spec branch from 51a5337 to 62bf363 Compare June 12, 2026 19:00
@scasplte2 scasplte2 merged commit 9d63631 into scasplte2:main Jun 12, 2026
5 checks passed
@scasplte2 scasplte2 deleted the docs/ottochain-new-app-skill-spec branch June 12, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-manual-rebase tier-2-review Needs human review before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants