{
  "schemaVersion": "1.0",
  "product": "dev.skillfiles/library",
  "availability": {
    "status": "open",
    "signUp": "open",
    "proOnSale": true
  },
  "money": {
    "unit": "minor",
    "note": "Every amount is a whole number of minor units: cents for USD and EUR, pence for GBP. Prices include VAT where the buyer pays it; checkout shows the final price.",
    "currencies": [
      "USD",
      "EUR",
      "GBP"
    ]
  },
  "usageWindow": "Monthly limits count over the library's usage window: one month from the day the account was created or Pro started, repeating.",
  "plans": [
    {
      "id": "free",
      "name": "Free",
      "for": "For trying Skillfiles with a small library.",
      "status": "available",
      "purchaseUrl": null,
      "price": {
        "billingPeriod": "month",
        "amounts": {
          "USD": 0,
          "EUR": 0,
          "GBP": 0
        }
      },
      "limits": {
        "skills": 25,
        "currentFilesBytes": 52428800,
        "repositoryBytes": 104857600,
        "skillWritesPerMonth": 50,
        "judgedSearchesPerMonth": 200,
        "mcpCallsPerMonth": 2000,
        "mcpCallsPerMinute": 30,
        "projects": 100,
        "connectedAgents": null
      },
      "usageHistoryDays": 400
    },
    {
      "id": "pro",
      "name": "Pro",
      "for": "For a library your agents lean on every day.",
      "status": "on-sale",
      "purchaseUrl": "https://app.skillfiles.dev/dashboard/plans",
      "price": {
        "billingPeriod": "month",
        "amounts": {
          "USD": 1000,
          "EUR": 900,
          "GBP": 900
        }
      },
      "limits": {
        "skills": 2000,
        "currentFilesBytes": 1000000000,
        "repositoryBytes": 1000000000,
        "skillWritesPerMonth": 500,
        "judgedSearchesPerMonth": 3000,
        "mcpCallsPerMonth": 40000,
        "mcpCallsPerMinute": 120,
        "projects": 100,
        "connectedAgents": null
      },
      "usageHistoryDays": 400
    }
  ],
  "limitBehaviour": [
    {
      "limit": "skills",
      "when": "A write would add a skill past the plan's number.",
      "outcome": "The write is refused with a reason and nothing is saved.",
      "code": "plan_limit"
    },
    {
      "limit": "currentFilesBytes",
      "when": "A write would take current files past the plan's size.",
      "outcome": "The write is refused with a reason and nothing is saved.",
      "code": "plan_limit"
    },
    {
      "limit": "repositoryBytes",
      "when": "A write would take the Git repository, history included, past the plan's size.",
      "outcome": "The write is refused with a reason and nothing is saved.",
      "code": "plan_limit"
    },
    {
      "limit": "skillWritesPerMonth",
      "when": "The usage window's skill writes are used up.",
      "outcome": "Further writes are refused until the window resets; the refusal says when.",
      "code": "plan_limit"
    },
    {
      "limit": "judgedSearchesPerMonth",
      "when": "The usage window's judged searches are used up.",
      "outcome": "Searches carry on, ranked by keywords and meaning without judging, with a notice saying when judging resumes.",
      "code": "judged_allowance_used"
    },
    {
      "limit": "mcpCallsPerMonth",
      "when": "The usage window's agent calls are used up.",
      "outcome": "Further calls are refused until the window resets; the refusal says when.",
      "code": "call_allowance"
    },
    {
      "limit": "mcpCallsPerMinute",
      "when": "A call would go over the plan's calls a minute.",
      "outcome": "The call is refused and told how many seconds to wait.",
      "code": "rate_limited"
    },
    {
      "limit": "projects",
      "when": "A library already has 100 projects.",
      "outcome": "Creating another project is refused.",
      "code": "project_limit"
    }
  ],
  "downgrade": "When Pro ends the library moves to Free's limits. No skill is deleted; writes that would go over a Free limit are refused until the library is back within it.",
  "countingRules": [
    {
      "term": "A month",
      "rule": "Your usage window. It starts on the day you create your account, or the day you start Pro, and repeats every month from then. Upgrading starts a fresh window. Moving down to Free keeps the counts so far and applies the lower limits straight away."
    },
    {
      "term": "Skills",
      "rule": "Live skills, including ones waiting for your review. A skill you delete stops counting at once."
    },
    {
      "term": "Files",
      "rule": "Free allows 50 MiB of current files. The Git repository, including past commits, may hold 100 MiB on Free and 1 GB on Pro. Deleting a skill reduces current files and keeps its earlier contents in Git. The Plan page shows usage against each allowance."
    },
    {
      "term": "A skill write",
      "rule": "A new version that is saved, whether it creates a skill or changes one. Deleting, revoking, undoing, a write that changes nothing, a refused write and a retry of a write that already went through count nothing."
    },
    {
      "term": "A judged search",
      "rule": "A search that the judging step actually scored. A search that falls back to unjudged results doesn’t count."
    },
    {
      "term": "An MCP call",
      "rule": "One tool call from an agent. Connecting and listing the tools don’t count, and a call that is refused doesn’t count towards the month."
    },
    {
      "term": "Calls a minute",
      "rule": "Approximate, because the platform’s rate limiter is. A call over the limit is told how long to wait."
    },
    {
      "term": "Usage history",
      "rule": "Search, read and activity records, kept and shown for 400 days on both plans. Git commits are kept for the life of the library."
    },
    {
      "term": "Restoring an export",
      "rule": "Restoring a Skillfiles export doesn’t use up your skill writes. Restored skills count towards the skill limit and arrive waiting for your review."
    }
  ],
  "notes": [
    "A null limit means the plan sets none.",
    "Every plan can export its current skills or clone its full Git history at any time."
  ],
  "links": {
    "pricingPage": "https://skillfiles.dev/pricing",
    "product": "https://skillfiles.dev/product.json"
  }
}
