Skip to content

Commit 4c96778

Browse files
committed
feat(skills): support amp harness
I was surprised to see one of the best agent harnesses, Amp, not listed under the `tfctl harness install` command. We can't let these inferior harnesses get all the attention. Seriously though, I added support for installing the `tfctl` skill into the directories that Amp looks for. ``` > tfctl harness install amp ✓ Successfully installed tfctl/SKILL.md for Amp CLI to project directory .agents/skills > head .agents/skills/tfctl/SKILL.md --- name: tfctl description: | Interact with HCP Terraform / Terraform Cloud using the tfctl CLI. Full API coverage. Use for ANY HCP Terraform or Terraform Cloud question or action — listing workspaces, starting/diagnosing runs, reading vars, modifying resources, calling API operations. license: MPL-2.0 --- # tfctl — HCP Terraform CLI ```
1 parent 4cfe546 commit 4c96778

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: ENHANCEMENTS
2+
body: The `tfctl harness install amp` command now supports installing the `tfctl` skill into the directories that Amp looks for.
3+
time: 2026-06-18T11:15:24.079775-04:00

skills/install.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ func registerAgents() map[string]AgentSpec {
6565
}
6666

6767
return map[string]AgentSpec{
68+
"amp": {
69+
Name: "amp",
70+
DisplayName: "Amp CLI",
71+
SkillsDir: ".agents/skills",
72+
GlobalSkillsDir: func() string {
73+
path, _ := homedir.Expand("~/.config/agents/skills")
74+
return path
75+
},
76+
Detect: func() bool {
77+
return detectHomeDirPath(".config/agents")
78+
},
79+
DetectParentProcess: func() bool {
80+
return os.Getenv("AGENT") == "amp"
81+
},
82+
},
6883
"antigravity": {
6984
Name: "antigravity",
7085
DisplayName: "Antigravity CLI",

0 commit comments

Comments
 (0)