published on Thursday, Nov 19, 2026 by Formal
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)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:
- Skill
Md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- Skill
Md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- skill_
md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- skill
Md String - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- skill
Md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- skill_
md str - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- skill
Md String - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. 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.mdfrontmatter. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Skill, from the
SKILL.mdfrontmatter.
- Description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the Skill, from the
SKILL.mdfrontmatter.
- description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the Skill, from the
SKILL.mdfrontmatter.
- description String
- Description of the Skill, from the
SKILL.mdfrontmatter. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Skill, from the
SKILL.mdfrontmatter.
- description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the Skill, from the
SKILL.mdfrontmatter.
- description str
- Description of the Skill, from the
SKILL.mdfrontmatter. - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the Skill, from the
SKILL.mdfrontmatter.
- description String
- Description of the Skill, from the
SKILL.mdfrontmatter. - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the Skill, from the
SKILL.mdfrontmatter.
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) -> Skillfunc 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.
- Description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - Name string
- Name of the Skill, from the
SKILL.mdfrontmatter. - Skill
Md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- Description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - Name string
- Name of the Skill, from the
SKILL.mdfrontmatter. - Skill
Md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - name string
- Name of the Skill, from the
SKILL.mdfrontmatter. - skill_
md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- description String
- Description of the Skill, from the
SKILL.mdfrontmatter. - name String
- Name of the Skill, from the
SKILL.mdfrontmatter. - skill
Md String - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- description string
- Description of the Skill, from the
SKILL.mdfrontmatter. - name string
- Name of the Skill, from the
SKILL.mdfrontmatter. - skill
Md string - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- description str
- Description of the Skill, from the
SKILL.mdfrontmatter. - name str
- Name of the Skill, from the
SKILL.mdfrontmatter. - skill_
md str - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. Formatting-only changes are ignored.
- description String
- Description of the Skill, from the
SKILL.mdfrontmatter. - name String
- Name of the Skill, from the
SKILL.mdfrontmatter. - skill
Md String - Contents of the
SKILL.mdfile, including itsnameanddescriptionfrontmatter. 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
formalTerraform Provider.
published on Thursday, Nov 19, 2026 by Formal