1. Registry
  2. Packages
  3. Formal Provider
  4. API Docs
  5. Skill
Viewing docs for Formal v1.2.11
published on Thursday, Nov 19, 2026 by Formal
formal logo Formal
Viewing docs for Formal v1.2.11
published on Thursday, Nov 19, 2026 by Formal

    Registering a Skill in the Formal Catalog from its SKILL.md. Skill names are unique, and changing skillMd replaces the skill.

    Create Skill Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Skill(name: string, args: SkillArgs, opts?: CustomResourceOptions);
    @overload
    def Skill(resource_name: str,
              args: SkillArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Skill(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              skill_md: Optional[str] = None)
    func NewSkill(ctx *Context, name string, args SkillArgs, opts ...ResourceOption) (*Skill, error)
    public Skill(string name, SkillArgs args, CustomResourceOptions? opts = null)
    public Skill(String name, SkillArgs args)
    public Skill(String name, SkillArgs args, CustomResourceOptions options)
    
    type: formal:Skill
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "formal_skill" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SkillArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SkillArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SkillArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SkillArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SkillArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var skillResource = new Pulumi.Skill("skillResource", new()
    {
        SkillMd = "string",
    });
    
    example, err := formal.NewSkill(ctx, "skillResource", &formal.SkillArgs{
    	SkillMd: pulumi.String("string"),
    })
    
    resource "formal_skill" "skillResource" {
      lifecycle {
        create_before_destroy = true
      }
      skill_md = "string"
    }
    
    var skillResource = new Skill("skillResource", SkillArgs.builder()
        .skillMd("string")
        .build());
    
    skill_resource = formal.Skill("skillResource", skill_md="string")
    
    const skillResource = new formal.Skill("skillResource", {skillMd: "string"});
    
    type: formal:Skill
    properties:
        skillMd: string
    

    Skill Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Skill resource accepts the following input properties:

    SkillMd string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    SkillMd string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    skill_md string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    skillMd String
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    skillMd string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    skill_md str
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    skillMd String
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Skill resource produces the following output properties:

    Description string
    Description of the Skill, from the SKILL.md frontmatter.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the Skill, from the SKILL.md frontmatter.
    Description string
    Description of the Skill, from the SKILL.md frontmatter.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the Skill, from the SKILL.md frontmatter.
    description string
    Description of the Skill, from the SKILL.md frontmatter.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the Skill, from the SKILL.md frontmatter.
    description String
    Description of the Skill, from the SKILL.md frontmatter.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the Skill, from the SKILL.md frontmatter.
    description string
    Description of the Skill, from the SKILL.md frontmatter.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the Skill, from the SKILL.md frontmatter.
    description str
    Description of the Skill, from the SKILL.md frontmatter.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the Skill, from the SKILL.md frontmatter.
    description String
    Description of the Skill, from the SKILL.md frontmatter.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the Skill, from the SKILL.md frontmatter.

    Look up Existing Skill Resource

    Get an existing Skill resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SkillState, opts?: CustomResourceOptions): Skill
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            skill_md: Optional[str] = None) -> Skill
    func GetSkill(ctx *Context, name string, id IDInput, state *SkillState, opts ...ResourceOption) (*Skill, error)
    public static Skill Get(string name, Input<string> id, SkillState? state, CustomResourceOptions? opts = null)
    public static Skill get(String name, Output<String> id, SkillState state, CustomResourceOptions options)
    resources:  existingSkill:    type: formal:Skill    get:      id: ${id}
    import {
      to = formal_skill.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state SkillState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state SkillState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state SkillState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state SkillState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Description string
    Description of the Skill, from the SKILL.md frontmatter.
    Name string
    Name of the Skill, from the SKILL.md frontmatter.
    SkillMd string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    Description string
    Description of the Skill, from the SKILL.md frontmatter.
    Name string
    Name of the Skill, from the SKILL.md frontmatter.
    SkillMd string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    description string
    Description of the Skill, from the SKILL.md frontmatter.
    name string
    Name of the Skill, from the SKILL.md frontmatter.
    skill_md string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    description String
    Description of the Skill, from the SKILL.md frontmatter.
    name String
    Name of the Skill, from the SKILL.md frontmatter.
    skillMd String
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    description string
    Description of the Skill, from the SKILL.md frontmatter.
    name string
    Name of the Skill, from the SKILL.md frontmatter.
    skillMd string
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    description str
    Description of the Skill, from the SKILL.md frontmatter.
    name str
    Name of the Skill, from the SKILL.md frontmatter.
    skill_md str
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.
    description String
    Description of the Skill, from the SKILL.md frontmatter.
    name String
    Name of the Skill, from the SKILL.md frontmatter.
    skillMd String
    Contents of the SKILL.md file, including its name and description frontmatter. Formatting-only changes are ignored.

    Import

    The pulumi import command can be used, for example:

    Skills are imported by name.

    $ pulumi import formal:index/skill:Skill repo["release-notes/SKILL.md"]' release-notes
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    formal formalco/pulumi-formal
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the formal Terraform Provider.
    formal logo Formal
    Viewing docs for Formal v1.2.11
    published on Thursday, Nov 19, 2026 by Formal

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial