← Back to Skills Marketplace
yezhaowang888-stack

Sharpagent Skill Contract

by yezhaowang888-stack · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
23
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install sharpagent-skill-contract
Description
SharpAgent Skill Contract — Schema-driven skill scaffolding tool. Generates, validates, and packages SharpAgent-compliant skills with five-factor trust verif...
README (SKILL.md)

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

Field Type Required Default
contract.name string -
contract.version semver "0.0.1"
contract.category enum -
contract.trust_level enum "draft"
contract.reads string[] []
contract.writes string[] []
contract.preconditions string[] []
contract.postconditions string[] []
contract.calibration object default
contract.compliance object default
contract.lifecycle object default

Contract Categories

Category Description Example Skills
analysis Analyzes input, produces structured output Five-factor review
workflow Multi-step process with gates Engineering lifecycle
monitor Periodic scanning and alerting Intelligence briefing
memory Storage, retrieval, consolidation Memory management
scaffold Code/file generation Skill creation
integration External service bridging API clients

Trust Levels

Level Meaning When
draft Work in progress, unverified Initial creation
verified Contract structure validated After validation
audited Full five-factor trust audit passed Community verified

Calibration Modes

calibration:
  default_mode: professional
  modes_supported: [warm, professional, deep]
Mode Warm Professional Deep
Tone Friendly, supportive Neutral, precise Analytical, detailed
Detail Concise Balanced Exhaustive
Use case User-facing Internal reports Research 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

Check What Fail action
Schema valid All required YAML fields present Block packaging
Type consistency reads/writes reference known types Warn
Naming convention snake_case, ≤40 chars Warn
Calibration declared At least default_mode set Warn
Preconditions non-empty preconditions list ≥1 item Warn
Version format valid semver Block packaging

Edge Cases

Situation Action
No reads (standalone) Allow with warning
reads = writes Warn (likely mistake)
Type cross-reference fails Warn + list unknown types
Calibration missing Set default: professional + standard
Draft trust_level Allow creation, warn on packaging
SKILL.md has no contract block Fail 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

Usage Guidance
This appears safe to install as an instruction-only scaffolding reference. Before running the example commands, confirm you trust the `sharpagent` CLI being invoked and review any generated skill package before publishing it. The provided SKILL.md content is marked truncated, so review the full file if available.
Capability Analysis
Type: OpenClaw Skill Name: sharpagent-skill-contract Version: 1.0.0 The skill bundle is a documentation-based scaffolding tool for a framework called 'SharpAgent.' It provides instructions and YAML schemas for generating, validating, and packaging other skills. No malicious code, data exfiltration, or harmful prompt injections were found in SKILL.md or _meta.json; the content is entirely focused on structural validation and organizational workflows for skill development.
Capability Assessment
Purpose & Capability
The skill’s stated purpose is to scaffold, validate, and package skill contracts, and the visible workflow is aligned with that purpose, but users should expect local file generation and archive creation when using it.
Instruction Scope
The visible instructions are documentation-style workflows and command examples, not hidden goal changes or automatic execution directives.
Install Mechanism
The registry says this is instruction-only with no install spec or required binaries, while the workflow references a `sharpagent` CLI whose source and installation path are not provided in the artifacts.
Credentials
No credentials, environment variables, network access, privileged paths, or broad local indexing are declared in the supplied artifacts.
Persistence & Privilege
The supplied artifacts do not show background persistence, elevated privilege requirements, autonomous monitoring, or long-running behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install sharpagent-skill-contract
  3. After installation, invoke the skill by name or use /sharpagent-skill-contract
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
SharpAgent Skill Contract v1.0.0 — initial release. - Introduces a schema-driven tool to generate, validate, and package SharpAgent-compliant skills. - Supports five-factor trust verification, calibration framework hooks, and content safety integration. - Provides CLI workflow: scaffold, validate, and package skills for ClawHub publication. - Enforces structured SKILL contracts with YAML-based schema for compliance and quality gates. - Includes documentation, reference contract schema, integration guidance, and edge case handling.
Metadata
Slug sharpagent-skill-contract
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Sharpagent Skill Contract?

SharpAgent Skill Contract — Schema-driven skill scaffolding tool. Generates, validates, and packages SharpAgent-compliant skills with five-factor trust verif... It is an AI Agent Skill for Claude Code / OpenClaw, with 23 downloads so far.

How do I install Sharpagent Skill Contract?

Run "/install sharpagent-skill-contract" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Sharpagent Skill Contract free?

Yes, Sharpagent Skill Contract is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Sharpagent Skill Contract support?

Sharpagent Skill Contract is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Sharpagent Skill Contract?

It is built and maintained by yezhaowang888-stack (@yezhaowang888-stack); the current version is v1.0.0.

💬 Comments