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

# Create a skill preset

> Create a skill preset and its assignments. Requires the MANAGE_ORGANIZATION_DATA permission (organization owner or admin). The preset starts at revision 1.

Set `is_template` to save a template: a starting point admins copy into new presets. A template is never resolved for a member and cannot have assignments.

A preset runs inside each assigned member's coding agent, on their machine, so every create and edit is checked before anything reaches members. The check covers every field that reaches an agent (the preset description, the team context, and each skill's description and content) and runs in two steps:

1. Deterministic rules look for content that could turn the agent against its user: overriding its instructions, hiding actions from the user, skipping confirmations, reading local credentials, dumping secrets, sending data out, running remote or obfuscated code, links outside an allowlist of documentation hosts, invisible characters, HTML comments, encoded blobs and pasted credentials. Any finding answers 422 (findings with `source` RULES) and the model is not called.
2. A model review on AWS Bedrock then reads the content as untrusted data, to catch paraphrased or new attacks the rules miss. A BLOCK verdict answers 422 (findings with `source` MODEL).

The check fails closed: if the model review cannot give a verdict (error, timeout or unusable answer), the request answers 503 and nothing is saved. Because every save is sent to the model, an organization with AI features turned off cannot create or edit presets (403). Reading, resolving, loading and deleting presets are not affected. A save refused for security is recorded in the audit log as a `SKILL_PRESET_REJECTED` event with sub-target `SKILL_PRESET`, holding hashes and findings, never the text.

The creation is recorded in the audit log as a `CREATE` event with sub-target `SKILL_PRESET`, holding the saved state with its full text, and as revision 1 in the revision history.



## OpenAPI

````yaml /api-reference/openapi.yaml post /organization/{organizationId}/skillPreset
openapi: 3.0.0
info:
  version: 1.0.4
  title: Qovery API
  description: >
    - Qovery is the fastest way to deploy your full-stack apps on any Cloud
    provider.

    - ℹ️ The API is stable and still in development.
  contact:
    name: Qovery Product Team
    url: https://www.qovery.com
    email: support+api+documentation@qovery.com
  x-logo:
    url: https://console.qovery.com/assets/logos/logo-white.svg
    altText: Qovery
servers:
  - url: https://api.qovery.com
security:
  - bearerAuth: []
  - ApiKeyAuth: []
tags:
  - name: Account
  - name: Account Info
  - name: IPs
  - name: Alert Receivers
  - name: Alert Rules
  - name: Admin
  - name: ArgoCD
  - name: Agentic Workflows
  - name: Application
  - name: Application Actions
  - name: Application Build Analysis
  - name: Application Configuration
  - name: Application Database
  - name: Application Deployment Restriction
  - name: Application Deployment History
  - name: Application Environment Variable
  - name: Application Logs
  - name: Application Main Calls
  - name: Application Secret
  - name: Application Annotations Group
  - name: Applications
  - name: AutoscalingPolicy
  - name: Container
  - name: Container Actions
  - name: Container Configuration
  - name: Container Database
  - name: Container Deployment History
  - name: Container Environment Variable
  - name: Container Logs
  - name: Container Main Calls
  - name: Container Registry
  - name: Container Secret
  - name: Container Annotations Group
  - name: Containers
  - name: Deployment Stage Main Calls
  - name: Job
  - name: Job Actions
  - name: Job Build Analysis
  - name: Job Configuration
  - name: Job Database
  - name: Job Deployment Restriction
  - name: Job Deployment History
  - name: Job Environment Variable
  - name: Job Logs
  - name: Job Main Calls
  - name: Job Registry
  - name: Job Secret
  - name: Job Annotations Group
  - name: Jobs
  - name: KedaTriggerAuthentication
  - name: Helm
  - name: Helm Actions
  - name: Helm Configuration
  - name: Helm Database
  - name: Helm Deployment Restriction
  - name: Helm Deployment History
  - name: Helm Logs
  - name: Helm Main Calls
  - name: Helm Repository
  - name: Helms
  - name: Backups
  - name: Billing
  - name: Blueprint Catalog
  - name: Cloud Provider
  - name: Cloud Provider Credentials
  - name: Clusters
  - name: Cluster Deployment History
  - name: Cluster Operator
  - name: Platform Configuration
  - name: Custom Domain
  - name: Container Custom Domain
  - name: LLM Providers
  - name: MCP Servers
  - name: Agent Activity
    description: >-
      What members' coding agents did on Qovery, linked to the skills they
      loaded: skill loads, API calls made from a Qovery skill, Qovery MCP server
      tool calls and policy denials. Built only from what Qovery already
      records. It returns no prompt text and no request content.
  - name: Skill Presets
    description: >-
      A skill preset is how an organization tells its members' coding agents to
      use Qovery: which Qovery skills apply, team instructions on top of them,
      and skills of the organization's own. Admins manage presets and assign
      each one to the organization, to roles or to members. Any member can read
      the preset that applies to them, which is what the agent's Qovery loader
      skill fetches. Every saved preset is inspected for content that could turn
      a member's agent against them, and every create, edit, delete and skill
      load is recorded in the audit log.
  - name: Database
  - name: Database Actions
  - name: Database Application
  - name: Database Container
  - name: Database Deployment History
  - name: Database Main Calls
  - name: Database Annotations Group
  - name: Databases
  - name: Environment
  - name: Environment Actions
  - name: Environment Custom Domain
  - name: Environment Deployment History
  - name: Environment Deployment Rule
  - name: Environment Logs
  - name: Environment Main Calls
  - name: Environment Secret
  - name: Environment Variable
  - name: Environments
  - name: Git
  - name: Github App
  - name: Git repositories
  - name: Members
  - name: Organization
  - name: Organization Account Git Repositories
  - name: Organization Cluster Lock
  - name: Organization Main Calls
  - name: Organization Custom Role
  - name: Organization Custom Domain
  - name: Organization Event
  - name: Organization Api Token
  - name: Organization Policy Api Token
  - name: Organization Webhook
  - name: Organization Annotations Group
  - name: Organization Labels Group
  - name: Organization Enterprise Connection
  - name: Project
  - name: Project Deployment Rule
  - name: Project Environment Variable
  - name: Project Main Calls
  - name: Project Secret
  - name: Projects
  - name: Referral & Rewards
  - name: Secret Manager Access
  - name: Terraforms
  - name: Terraform Main Calls
  - name: Terraform Resources
  - name: Terraform Deployment History
  - name: Terraform Deployment Restriction
  - name: Container Registries
  - name: Helm Repositories
  - name: User Sign Up
  - name: Variable Main Calls
  - name: Helm Custom Domain
  - name: Lifecycle Template Main Calls
  - name: Blueprint Main Calls
paths:
  /organization/{organizationId}/skillPreset:
    post:
      tags:
        - Skill Presets
      summary: Create a skill preset
      description: >-
        Create a skill preset and its assignments. Requires the
        MANAGE_ORGANIZATION_DATA permission (organization owner or admin). The
        preset starts at revision 1.


        Set `is_template` to save a template: a starting point admins copy into
        new presets. A template is never resolved for a member and cannot have
        assignments.


        A preset runs inside each assigned member's coding agent, on their
        machine, so every create and edit is checked before anything reaches
        members. The check covers every field that reaches an agent (the preset
        description, the team context, and each skill's description and content)
        and runs in two steps:


        1. Deterministic rules look for content that could turn the agent
        against its user: overriding its instructions, hiding actions from the
        user, skipping confirmations, reading local credentials, dumping
        secrets, sending data out, running remote or obfuscated code, links
        outside an allowlist of documentation hosts, invisible characters, HTML
        comments, encoded blobs and pasted credentials. Any finding answers 422
        (findings with `source` RULES) and the model is not called.

        2. A model review on AWS Bedrock then reads the content as untrusted
        data, to catch paraphrased or new attacks the rules miss. A BLOCK
        verdict answers 422 (findings with `source` MODEL).


        The check fails closed: if the model review cannot give a verdict
        (error, timeout or unusable answer), the request answers 503 and nothing
        is saved. Because every save is sent to the model, an organization with
        AI features turned off cannot create or edit presets (403). Reading,
        resolving, loading and deleting presets are not affected. A save refused
        for security is recorded in the audit log as a `SKILL_PRESET_REJECTED`
        event with sub-target `SKILL_PRESET`, holding hashes and findings, never
        the text.


        The creation is recorded in the audit log as a `CREATE` event with
        sub-target `SKILL_PRESET`, holding the saved state with its full text,
        and as revision 1 in the revision history.
      operationId: createSkillPreset
      parameters:
        - $ref: '#/components/parameters/organizationId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SkillPresetRequest'
      responses:
        '201':
          description: Skill preset created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SkillPresetResponse'
        '400':
          description: >-
            Invalid preset: a field is out of its limits, a skill entry does not
            fit its mode or the base, a skill or a target appears more than
            once, a template has assignments, the preset has more than 200
            assignments, the Owner role is a target (assign the Admin role,
            which the organization owner resolves as), or the preset holds more
            than 200,000 characters of text in total
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/SkillPresetForbidden'
        '404':
          description: >-
            The organization does not exist, or a role id is not a role of the
            organization
        '409':
          description: >-
            The preset name is already taken in the organization, or an
            assignment target already receives another preset
        '422':
          $ref: '#/components/responses/SkillPresetRejected'
        '503':
          $ref: '#/components/responses/SkillPresetReviewUnavailable'
components:
  parameters:
    organizationId:
      name: organizationId
      in: path
      description: Organization ID
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    SkillPresetRequest:
      type: object
      description: >-
        Create and edit share this body. An edit replaces the whole preset,
        skill entries and assignments included.
      required:
        - name
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 100
          description: Preset name, unique in the organization, 1 to 100 characters
          example: backend
        description:
          type: string
          default: ''
          maxLength: 1024
          description: >-
            What the preset is for, at most 1024 characters. Shown to the
            members it applies to.
        base:
          allOf:
            - $ref: '#/components/schemas/SkillPresetBase'
          default: FULL
          description: The Qovery skill set the preset starts from. Defaults to FULL.
        is_template:
          type: boolean
          default: false
          description: >-
            Whether this is a template: a starting point admins copy into new
            presets. A template is never resolved for a member and cannot have
            assignments (400 otherwise). Defaults to false.
        team_context:
          type: string
          nullable: true
          maxLength: 32768
          description: >-
            Markdown on how the team uses Qovery, delivered with every skill the
            agent loads, at most 32 KB. Null or blank means none.
        skills:
          type: array
          default: []
          maxItems: 50
          description: >-
            Changes on top of the base, at most 50, each skill name at most
            once.
          items:
            $ref: '#/components/schemas/SkillPresetSkillRequest'
        assigned_to:
          $ref: '#/components/schemas/SkillPresetAssignedTo'
    SkillPresetResponse:
      allOf:
        - $ref: '#/components/schemas/Base'
        - type: object
          required:
            - name
            - description
            - base
            - is_template
            - skills
            - revision
            - assigned_to
            - updated_at
          properties:
            name:
              type: string
            description:
              type: string
            base:
              $ref: '#/components/schemas/SkillPresetBase'
            is_template:
              type: boolean
              description: >-
                Whether this is a template, never resolved for a member and
                never assigned.
            team_context:
              type: string
              nullable: true
              description: >-
                Markdown delivered with every skill the agent loads. Null when
                the preset has none.
            skills:
              type: array
              items:
                $ref: '#/components/schemas/SkillPresetSkillResponse'
            revision:
              type: integer
              minimum: 1
              description: Starts at 1 and increases by one on every edit.
            creator_name:
              type: string
              nullable: true
              description: Name of the member who created the preset. Null when unknown.
            assigned_to:
              $ref: '#/components/schemas/SkillPresetAssignedTo'
    SkillPresetBase:
      type: string
      enum:
        - FULL
        - LEAN
        - NONE
      description: >-
        The Qovery skill set a preset starts from. FULL: every Qovery skill, as
        published. LEAN: one short CLI-first skill that relies on the `qovery`
        CLI and its `--help`. NONE: no Qovery skill, only the preset's own
        skills and team context.
    SkillPresetSkillRequest:
      type: object
      description: >-
        One skill entry. Each mode takes only some fields: DISABLE takes neither
        `description` nor `content`, OVERLAY takes `content` only, REPLACE and
        ADD take both. Sending a field the mode does not take is refused with
        400 rather than dropped.
      required:
        - skill_name
        - mode
      properties:
        skill_name:
          type: string
          maxLength: 64
          pattern: ^[a-z0-9]([a-z0-9-]{0,62}[a-z0-9])?$
          description: >-
            Lowercase letters, digits and hyphens, at most 64 characters. A
            Qovery skill name (`qovery` or `qovery-*`) for DISABLE, OVERLAY and
            REPLACE; any other name for ADD.
          example: qovery-deploy
        mode:
          $ref: '#/components/schemas/SkillPresetSkillMode'
        description:
          type: string
          nullable: true
          maxLength: 1024
          description: >-
            When the agent should use the skill, at most 1024 characters.
            Required for ADD and REPLACE, since agents pick a skill from its
            description. DISABLE and OVERLAY take none: a non-blank value is
            refused with 400.
        content:
          type: string
          nullable: true
          maxLength: 65536
          description: >-
            Markdown delivered to the agent, at most 64 KB. Required for every
            mode except DISABLE, which takes none: a non-blank value is refused
            with 400.
    SkillPresetAssignedTo:
      type: object
      description: >-
        Who receives the preset. A target (the organization default, a role or a
        member) receives at most one preset. When several presets could apply to
        a member, a member assignment wins over a role assignment, which wins
        over the organization default.
      properties:
        organization_default:
          type: boolean
          default: false
          description: >-
            Whether the preset applies to every member with no member or role
            assignment of their own.
        role_ids:
          type: array
          default: []
          description: >-
            Default or custom roles of the organization, as returned by "List
            organization roles".
          items:
            type: string
            format: uuid
        user_ids:
          type: array
          default: []
          description: >-
            Members of the organization, by the id returned by "List
            organization members".
          items:
            type: string
    Base:
      type: object
      required:
        - id
        - created_at
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        created_at:
          type: string
          readOnly: true
          format: date-time
        updated_at:
          type: string
          readOnly: true
          format: date-time
    SkillPresetSkillResponse:
      type: object
      required:
        - skill_name
        - mode
      properties:
        skill_name:
          type: string
        mode:
          $ref: '#/components/schemas/SkillPresetSkillMode'
        description:
          type: string
          nullable: true
          description: When the agent should use the skill. Null when the entry has none.
        content:
          type: string
          nullable: true
          description: Markdown delivered to the agent. Null for DISABLE.
    SkillPresetRejectionResponse:
      type: object
      description: >-
        A problem detail (RFC 9457) listing every finding of the security
        inspection.
      required:
        - status
        - title
        - detail
        - findings
      properties:
        type:
          type: string
          example: about:blank
        title:
          type: string
          example: Skill preset rejected for security
        status:
          type: integer
          example: 422
        detail:
          type: string
          description: Every finding in one sentence, safe to log.
        instance:
          type: string
          description: The request path.
        findings:
          type: array
          items:
            $ref: '#/components/schemas/SkillPresetRejectionFinding'
    SkillPresetProblemResponse:
      type: object
      description: A problem detail (RFC 9457).
      required:
        - status
        - title
        - detail
      properties:
        type:
          type: string
          example: about:blank
        title:
          type: string
          example: Skill preset security review unavailable
        status:
          type: integer
          example: 503
        detail:
          type: string
          example: >-
            The security review is unavailable. Nothing was saved. Try again in
            a minute.
        instance:
          type: string
          description: The request path.
    SkillPresetSkillMode:
      type: string
      enum:
        - DISABLE
        - OVERLAY
        - REPLACE
        - ADD
      description: >-
        What a skill entry does on top of the base. DISABLE: the Qovery skill is
        never loaded. OVERLAY: the Qovery skill is loaded, then the entry's
        content as team instructions. REPLACE: the entry's content is loaded in
        place of the Qovery skill. ADD: a skill of the organization's own.
        DISABLE, OVERLAY and REPLACE apply to a Qovery skill (named `qovery` or
        `qovery-*`) and only on the FULL base. ADD applies to any name that does
        not start with `qovery`, on any base.
    SkillPresetRejectionFinding:
      type: object
      required:
        - rule_id
        - location
        - line
        - reason
        - source
      properties:
        source:
          $ref: '#/components/schemas/SkillPresetFindingSource'
        rule_id:
          type: string
          description: >-
            For `source` RULES, the rule that matched, for example
            `override-instructions`, `conceal-from-user`, `skip-confirmation`,
            `read-credentials`, `dump-secrets`, `exfiltration-endpoint`,
            `upload-command`, `remote-exec`, `obfuscated-exec`, `external-url`,
            `invisible-characters`, `html-comment`, `encoded-blob` or
            `credential`. For `source` MODEL, the category: `prompt-injection`,
            `concealment`, `credential-access`, `data-exfiltration`,
            `unsafe-execution`, `approval-bypass`, `social-engineering` or
            `other`. New rules and categories can be added.
          example: dump-secrets
        location:
          type: string
          description: >-
            The field that holds the finding: `description`, `team context`,
            `description of skill '<name>'` or `content of skill '<name>'`.
          example: team context
        line:
          type: integer
          minimum: 1
          description: 1-based line within that field.
          example: 3
        reason:
          type: string
          description: Why the content was refused. Never contains the offending text.
          example: Asks the agent to print or collect secrets
    SkillPresetFindingSource:
      type: string
      enum:
        - RULES
        - MODEL
      description: >-
        Who raised a finding. RULES: the deterministic rules, and `rule_id` is a
        rule. MODEL: the model review, and `rule_id` is a category.
  responses:
    '401':
      description: Access token is missing or invalid
    SkillPresetForbidden:
      description: >-
        Access forbidden, or AI features are turned off for the organization
        (`ai_features_enabled`): every preset is reviewed by a model before it
        reaches members, so presets cannot be created or edited. Reading and
        resolving presets stay allowed.
    SkillPresetRejected:
      description: >-
        The preset was rejected for security, to protect the members it applies
        to, by the rules or by the model review. Each finding names its source,
        the rule or category, the field and the line, never the offending text.
        Nothing was saved.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SkillPresetRejectionResponse'
        application/problem+json:
          schema:
            $ref: '#/components/schemas/SkillPresetRejectionResponse'
    SkillPresetReviewUnavailable:
      description: >-
        The security review is unavailable: no model reviewer is configured on
        this Qovery instance, or the model review could not give a verdict
        (error, timeout or unusable answer). The check fails closed, so nothing
        was saved. Try again in a minute. The body is a problem detail with the
        title "Skill preset security review unavailable".
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SkillPresetProblemResponse'
        application/problem+json:
          schema:
            $ref: '#/components/schemas/SkillPresetProblemResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT tokens should be used with OIDC account (human to machine). JWT
        tokens used by the Qovery console to communicate with the API have a
        TTL. Curl Example ' curl https://console.qovery.com/organization -H
        "Authorization: Bearer $qovery_token" '
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Token API are generated by Qovery to manage machine to machine
        interaction and do not have a TTL. Curl Example ' curl
        https://console.qovery.com/organization -H "Authorization: Token
        $qovery_token" '

````

## Related topics

- [List skill preset revisions](https://www.qovery.com/docs/api-reference/skill-presets/list-skill-preset-revisions.md)
- [Delete a skill preset](https://www.qovery.com/docs/api-reference/skill-presets/delete-a-skill-preset.md)
- [Get a skill preset](https://www.qovery.com/docs/api-reference/skill-presets/get-a-skill-preset.md)
- [Edit a skill preset](https://www.qovery.com/docs/api-reference/skill-presets/edit-a-skill-preset.md)
- [List organization skill presets](https://www.qovery.com/docs/api-reference/skill-presets/list-organization-skill-presets.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.