Skip to content

Feat/embed agent skill#53

Merged
bpradipt merged 2 commits into
mainfrom
feat/embed-agent-skill
Jul 5, 2026
Merged

Feat/embed agent skill#53
bpradipt merged 2 commits into
mainfrom
feat/embed-agent-skill

Conversation

@bpradipt

@bpradipt bpradipt commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Pradipta Banerjee added 2 commits July 5, 2026 16:43
Ship a CoCo-fy skill for AI coding agents inside the binary via go:embed,
emitted with `cococtl skill` (mirrors the `completion` command). Users
redirect it into their agent's skills dir; no git clone or separate
download needed, and it always matches the installed binary version.

README documents the install command.

Signed-off-by: Pradipta Banerjee <pkbanerj@agranilabs.com>
Run make fmt: import ordering and gofmt alignment only, no logic changes.

Signed-off-by: Pradipta Banerjee <pkbanerj@agranilabs.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an embedded “cocofy” agent skill to cococtl (shipped inside the binary and printable via a new cococtl skill command), along with README guidance for installing it into an AI agent skills directory.

Changes:

  • Add embedded skill content (pkg/skill/SKILL.md) and expose it via a new cococtl skill Cobra command.
  • Document the skill and installation steps in README.md; ignore local .claude/ config in .gitignore.
  • Minor formatting/gofmt-only cleanups in a few Go files.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Documents the embedded agent skill and how to install it for an AI coding agent.
pkg/trustee/trustee.go gofmt/import order cleanup and trailing whitespace removal.
pkg/trustee/trustee_test.go Trailing whitespace removal.
pkg/trustee/kbs.go Trailing whitespace removal.
pkg/skill/SKILL.md Adds the embedded “cocofy” agent skill content.
pkg/skill/skill.go Embeds SKILL.md into the binary via go:embed.
pkg/skill/skill_test.go Verifies embedded skill content is present and has expected frontmatter.
pkg/initdata/initdata.go Updates a comment (but introduces an unintended quote sequence).
cmd/skill.go Adds new cococtl skill command to print embedded skill content.
cmd/kbs/populate.go gofmt alignment/import order cleanup.
cmd/initdata/common.go gofmt/import order cleanup.
.gitignore Ignores .claude/ local config directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/initdata/initdata.go
}

// marshalInitData serialises InitData to TOML using ''' literal multi-line strings
// marshalInitData serialises InitData to TOML using ' literal multi-line strings
@bpradipt bpradipt merged commit 8cc6e2c into main Jul 5, 2026
4 checks passed
@bpradipt bpradipt deleted the feat/embed-agent-skill branch July 5, 2026 11:19
bpradipt added a commit that referenced this pull request Jul 6, 2026
bpradipt added a commit that referenced this pull request Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants