# MyClaude Creator Context Payload
# Version: 2.0.0
# Purpose: Bootstrap agent knowledge for product creation workflows (~500 tokens)
# Usage: Inject when helping users create, publish, or manage MyClaude products

role: creator
platform: MyClaude (myclaude.sh)

getting_started:
  1_install_cli: "npm install -g @myclaude-cli/cli (requires Node.js >= 20)"
  2_authenticate: "myclaude login"
  3_scaffold: "myclaude init --name {product-name} --type {category}"
  4_edit: "Edit vault.yaml + entry file (SKILL.md, AGENT.md, etc.)"
  5_validate: "myclaude validate"
  6_publish: "myclaude publish"

vault_yaml:
  required_fields:
    name: "URL-safe identifier (lowercase, hyphens). Pattern: ^[a-z0-9-]+$, max 64 chars"
    version: "SemVer string, always quoted. Example: '1.0.0'"
    category: "One of: skills, squads, agents, workflows, design-systems, claude-md, bundle, applications, systems"
    description: "One sentence, max 200 characters"
    author: "Must match authenticated username"
    license: "SPDX identifier (default: MIT)"
    entry: "Main file path relative to product root"
  optional_fields:
    price: "USD. Default 0 (free). Minimum $1.00 for paid products"
    tags: "Up to 10 lowercase strings"
    display_name: "Human-readable name (max 100 chars)"
    long_description: "Extended description in Markdown (max 5000 chars)"
    language: "ISO 639-1 language code (default: en)"
    manifest_version: "vault.yaml format version (current: 2)"
    install_path: "Target directory in buyer environment"
    min_cli_version: "Minimum CLI SemVer"
    config: "Arbitrary key-value pairs"
    agent_summary: "One-line machine-readable summary (max 100 chars)"
    agent_spec: "Structured metadata: inputs, outputs, side_effects, context_budget"

entry_files_by_category:
  skills: SKILL.md
  squads: SQUAD.md
  agents: AGENT.md
  workflows: WORKFLOW.md
  design-systems: DESIGN-SYSTEM.md
  bundle: BUNDLE.md
  claude-md: CLAUDE.md
  applications: APPLICATION.md
  systems: "(advanced — no default entry file)"

install_paths:
  skills: ".claude/skills/{slug}/"
  squads: ".claude/skills/{slug}/"
  agents: ".claude/skills/{slug}/"
  workflows: ".claude/skills/{slug}/"
  bundle: ".claude/skills/{slug}/"
  systems: ".claude/skills/{slug}/"
  claude-md: ".claude/rules/{slug}.md"
  design-systems: "./myclaude-products/{slug}/"
  applications: "./myclaude-products/{slug}/"

publish_pipeline:
  stages: [validate, scan, authenticate, upload, list]
  scan_checks: [secrets, malicious_patterns, content_policy, manifest_validation]
  version_rule: "Monotonically increasing — cannot republish same or lower version"

mcs_certification:
  mcs_1_bronze: "Valid manifest + passes scan + has README"
  mcs_2_silver: "MCS-1 + rating >= 4.0 + >= 10 downloads"
  mcs_3_gold: "MCS-2 + verified author + consistent updates"

monetization:
  creator_share: "92%"
  platform_fee: "8%"
  payout: "Stripe Connect Express"
  setup: "myclaude stripe connect"
  minimum_price: "$1.00"

docs:
  creator_onboarding: "https://myclaude.sh/docs/creators/onboarding"
  vault_yaml_spec: "https://myclaude.sh/docs/creators/vault-yaml"
  publishing_guide: "https://myclaude.sh/docs/creators/publishing"
  categories_guide: "https://myclaude.sh/docs/creators/categories"
  schema: "https://myclaude.sh/specs/vault-yaml.schema.json"
