> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decimal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a skill by name

> Get skill metadata, ownership, and analytics.



## OpenAPI

````yaml /openapi.json get /api/v1/skills/{skill_name}
openapi: 3.1.0
info:
  title: DecimalAI Platform
  description: Agent Dataset Lifecycle Platform — Backend API
  version: 0.1.0
servers: []
security:
  - BearerAuth: []
tags:
  - name: traces
    description: >-
      Ingest, search, and inspect agent execution traces. A trace is the atomic
      unit of the platform — every other feature (evaluation, compatibility
      scoring, dataset building) operates on traces. Each trace is auto-tagged
      with the manifest hash of the agent that produced it.
  - name: eval-scores
    description: >-
      Push, fetch, and aggregate per-trace evaluation scores. Scores carry
      source provenance (built-in, DeepEval, LangSmith, custom) and feed the
      unified decision engine, which produces a keep / repair / replay / drop
      verdict per trace.
  - name: skills
    description: >-
      Manage reusable instruction blocks (SKILL.md files) that modify agent
      behavior. Skills are first-class manifest components — changes to a skill
      appear in your regression-check impact reports. Use these endpoints to
      create, version, fork, and sync skills with your local SKILL.md files.
  - name: manifests
    description: >-
      Register and inspect manifest versions. A manifest is a snapshot of your
      agent's structural identity (tools, prompts, models, skills) at a point in
      time. The SDK registers manifests automatically; these endpoints expose
      the underlying records.
  - name: datasets
    description: >-
      Build versioned SFT/DPO training datasets from manifest-classified,
      eval-scored traces. Datasets are reproducible — each version locks the
      manifest and filter set used to build it. Export as JSONL, Parquet, or
      push to HuggingFace Hub.
  - name: replay
    description: >-
      Re-execute historical traces against a new manifest version. Replay is the
      deferred-future capability for behavioral verification of agent changes.
      The SDK creates a replay batch, your worker executes each task, then
      submits results back here for eval scoring.
  - name: registry
    description: >-
      Browse and install community skills from the public skills registry. Each
      registry skill carries a SkillScore — an evidence-tiered quality composite
      computed from real-world evals, benchmarks, and ratings across
      organizations. Installing creates a fork in your org — edits don't affect
      the public version.
  - name: agents
    description: >-
      List and inspect agents, plus their multi-agent topology (orchestrator →
      sub-agent edges discovered from traces). Agents are identified by a stable
      agent_name string set in your SDK init() call.
  - name: import
    description: >-
      Bulk-import historical traces from another observability platform or a
      JSONL backup. Useful for migrating from LangSmith / Braintrust / Langfuse.
      Duplicate trace IDs are silently skipped — re-running an import is safe.
paths:
  /api/v1/skills/{skill_name}:
    get:
      tags:
        - skills
      summary: Get a skill by name
      description: Get skill metadata, ownership, and analytics.
      operationId: get_skill_api_v1_skills__skill_name__get
      parameters:
        - name: skill_name
          in: path
          required: true
          schema:
            type: string
            description: The skill's slug-style name (lowercase, hyphens/underscores).
            examples:
              - search-flights
            title: Skill Name
          description: The skill's slug-style name (lowercase, hyphens/underscores).
        - name: Authorization
          in: header
          required: false
          schema:
            type: string
            title: Authorization
        - name: X-Workspace-Id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Workspace-Id
        - name: decimal_session
          in: cookie
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Decimal Session
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillDetail'
              example:
                id: sk_abc123
                name: search-flights
                description: Search available flights
                category: tools
                stability: stable
                is_active: true
                trigger_phrases:
                  - find flights
                embedding_model: text-embedding-3-small
                embedding_dimensions: 1536
                latest_version:
                  version_number: 3
                  content_hash: a1b2c3d4e5f60718
                  change_summary: Added retry logic on timeout
                  author: alice@example.com
                  created_at: '2026-05-10T14:22:00Z'
                created_at: '2026-04-01T09:00:00Z'
                owner:
                  user_id: user_123
                  user_name: Alice
                  workspace_id: ws_main
                  workspace_name: Main
                visibility: org
                can_edit: true
                can_share: true
                activation_count: 142
                effectiveness_score: 0.87
                pass_rate: 0.91
                success_rate: 0.93
                trend: up
        '404':
          description: Skill not found, or hidden from the caller by visibility rules.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-codeSamples:
        - lang: Python
          label: Python SDK
          source: |-
            from decimalai.skill_router import SkillRouter

            router = SkillRouter(api_key="dai_sk_...")
            skill = router.get_skill("search-flights")
components:
  schemas:
    SkillDetail:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        category:
          anyOf:
            - type: string
            - type: 'null'
          title: Category
        stability:
          type: string
          title: Stability
        is_active:
          type: boolean
          title: Is Active
        trigger_phrases:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Trigger Phrases
        embedding_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Embedding Model
        embedding_dimensions:
          anyOf:
            - type: integer
            - type: 'null'
          title: Embedding Dimensions
        latest_version:
          anyOf:
            - $ref: '#/components/schemas/SkillVersionInfo'
            - type: 'null'
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        source_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Type
        source_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Url
        license:
          anyOf:
            - type: string
            - type: 'null'
          title: License
        license_spdx:
          anyOf:
            - type: string
            - type: 'null'
          title: License Spdx
        compatibility:
          anyOf:
            - type: string
            - type: 'null'
          title: Compatibility
        allowed_tools:
          items:
            type: string
          type: array
          title: Allowed Tools
        privacy_statement_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Privacy Statement Url
        data_handling_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Data Handling Summary
        safety_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Safety Status
        safety:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Safety
        safety_scan:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Safety Scan
        intent_review:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Intent Review
        content_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Status
        content_review:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Content Review
        skill_safety:
          anyOf:
            - type: string
            - type: 'null'
          title: Skill Safety
        last_updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Updated At
          description: last_synced_at for imported skills, else created_at
        owner:
          anyOf:
            - $ref: '#/components/schemas/SkillOwner'
            - type: 'null'
        visibility:
          type: string
          title: Visibility
        can_edit:
          type: boolean
          title: Can Edit
        can_share:
          type: boolean
          title: Can Share
          description: Stricter than can_edit; required to publish or transfer
        forked_from_skill_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Forked From Skill Id
        activation_count:
          type: integer
          title: Activation Count
          default: 0
        effectiveness_score:
          anyOf:
            - type: number
            - type: 'null'
          title: Effectiveness Score
        pass_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Pass Rate
        success_rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Success Rate
        trend:
          anyOf:
            - type: string
            - type: 'null'
          title: Trend
      type: object
      required:
        - id
        - name
        - stability
        - is_active
        - visibility
        - can_edit
        - can_share
      title: SkillDetail
      description: Full skill record returned by GET /api/v1/skills/{skill_name}.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SkillVersionInfo:
      properties:
        version_number:
          type: integer
          title: Version Number
        content_hash:
          type: string
          title: Content Hash
          description: SHA-256 of the body markdown, first 16 hex chars
        change_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Change Summary
        author:
          anyOf:
            - type: string
            - type: 'null'
          title: Author
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
          description: ISO 8601 timestamp
      type: object
      required:
        - version_number
        - content_hash
      title: SkillVersionInfo
    SkillOwner:
      properties:
        user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: User Id
        user_name:
          anyOf:
            - type: string
            - type: 'null'
          title: User Name
        workspace_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Workspace Id
        workspace_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Workspace Name
      type: object
      title: SkillOwner
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key (e.g. dai_sk_test_key_001)

````