sharpagent-skill-contract

SharpAgent Skill Contract — Schema-driven skill scaffolding tool. Generates, validates, and packages SharpAgent-compliant skills with five-factor trust verification, calibration framework hooks, and content safety integration.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "sharpagent-skill-contract" with this command: npx skills add yezhaowang888-stack/sharpagent-skill-contract

SharpAgent Skill Contract v1.0.0

Foundation shovel — Generate, validate, and package all SharpAgent skills. Fusion of Ontology Schema + Skill Creator + Skill Oracle.

When to Use

Use this skill when:

  • Creating a new SharpAgent-compliant Skill from scratch
  • Validating an existing Skill for contract compliance
  • Packaging a Skill for ClawHub publication under SharpAgent
  • Upgrading a legacy Skill to SharpAgent standards

What Is a Skill Contract

Every SharpAgent Skill must declare a contract — a YAML block that states:

contract:
  name: sharpagent-five-factor-review
  version: "1.0.0"
  category: analysis
  trust_level: verified            # draft | verified | audited
  reads:
    - InformationSource
    - LearningEntry
  writes:
    - FiveFactorResult
  preconditions:
    - "Must have at least one InformationSource to analyze"
    - "Must have access to web_search or memory_search tool"
  postconditions:
    - "Output contains overall_confidence score (0-10)"
    - "Each of 5 factors has a value"
  calibration:
    default_mode: professional     # warm | professional | deep
    modes_supported: [warm, professional, deep]
  compliance:
    jurisdiction: global           # cn | us | eu | global
    safety_level: standard         # minimal | standard | strict
  lifecycle:
    status: active
    publish_as: SharpAgent

Workflow

Step 1: Scaffold a New Skill

sharpagent scaffold --name sharpagent-five-factor-review --category analysis

Generates:

/sharpagent-skills/sharpagent-five-factor-review/
├── SKILL.md            # Contract + documentation
├── contract.yaml       # Machine-readable contract (auto-derived)
├── scripts/            # Runtime scripts (optional)
├── references/         # Supporting docs (optional)
└── test/               # Validation tests (optional)

Step 2: Validate Contract

sharpagent validate --path ./sharpagent-five-factor-review/SKILL.md

Checks:

  • Structural: All required YAML fields present
  • Semantic: reads/writes match known ontology types
  • Integrity: preconditions reference real capabilities
  • Naming: snake_case, no spaces, max 40 chars
{
  "valid": true,
  "warnings": [],
  "errors": [],
  "score": 100,
  "missing_optional": ["scripts/ directory missing"]
}

Step 3: Package for Publication

sharpagent package --name sharpagent-five-factor-review --output ./dist/

Produces:

./dist/sharpagent-five-factor-review.tar.gz
├── SKILL.md
├── contract.yaml
├── scripts/
└── references/

Contract YAML Schema Reference

Top-Level Fields

FieldTypeRequiredDefault
contract.namestring-
contract.versionsemver"0.0.1"
contract.categoryenum-
contract.trust_levelenum"draft"
contract.readsstring[][]
contract.writesstring[][]
contract.preconditionsstring[][]
contract.postconditionsstring[][]
contract.calibrationobjectdefault
contract.complianceobjectdefault
contract.lifecycleobjectdefault

Contract Categories

CategoryDescriptionExample Skills
analysisAnalyzes input, produces structured outputFive-factor review
workflowMulti-step process with gatesEngineering lifecycle
monitorPeriodic scanning and alertingIntelligence briefing
memoryStorage, retrieval, consolidationMemory management
scaffoldCode/file generationSkill creation
integrationExternal service bridgingAPI clients

Trust Levels

LevelMeaningWhen
draftWork in progress, unverifiedInitial creation
verifiedContract structure validatedAfter validation
auditedFull five-factor trust audit passedCommunity verified

Calibration Modes

calibration:
  default_mode: professional
  modes_supported: [warm, professional, deep]
ModeWarmProfessionalDeep
ToneFriendly, supportiveNeutral, preciseAnalytical, detailed
DetailConciseBalancedExhaustive
Use caseUser-facingInternal reportsResearch analysis

Integration Points

With Five-Factor Review

  • writes: [FiveFactorResult] → Contract schema is consumed by the five-factor review skill
  • Contract trust_level is validated using FiveFactorResult as part of skill audit

With Calibration Framework

  • contract.calibration block defines which modes are supported
  • At runtime, the calibration engine checks contract.calibration.modes_supported

With Content Safety Engine

  • contract.compliance block sets safety policies
  • safety_level: standard is the minimum for ClawHub publication

Quality Gates

CheckWhatFail action
Schema validAll required YAML fields presentBlock packaging
Type consistencyreads/writes reference known typesWarn
Naming conventionsnake_case, ≤40 charsWarn
Calibration declaredAt least default_mode setWarn
Preconditions non-emptypreconditions list ≥1 itemWarn
Version formatvalid semverBlock packaging

Edge Cases

SituationAction
No reads (standalone)Allow with warning
reads = writesWarn (likely mistake)
Type cross-reference failsWarn + list unknown types
Calibration missingSet default: professional + standard
Draft trust_levelAllow creation, warn on packaging
SKILL.md has no contract blockFail validation

Dependencies

  • YAML parser (for reading contract blocks)
  • jq or Python 3 (for validation scripts)
  • tar (for packaging)

Version History

  • v1.0.0 — Initial release. Skill Contract scaffolding + validation + packaging.

SharpAgent · MIT-0 · 2026-05-11

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Config Field Validator

Validate OpenClaw configuration fields against the official Zod schema. Use when reading or writing openclaw.json to check if configuration fields exist and...

Registry SourceRecently Updated
5780Profile unavailable
Automation

Sharpagent Memory System

SharpAgent Layered Memory System — 6-layer memory hierarchy from ephemeral to long-term archive. Features dream processing (consolidation/archiving/forgettin...

Registry SourceRecently Updated
00Profile unavailable
Automation

Sharpagent Engineering Lifecycle

SharpAgent Engineering Lifecycle — 6-phase engineering pipeline: Spec → Plan → Build → Verify → Review → Ship. Embedding five-factor review, calibration fram...

Registry SourceRecently Updated
00Profile unavailable
Automation

Context Verifier

Know the file you're editing is the file you think it is — verify integrity before you act

Registry SourceRecently Updated
1K0Profile unavailable