Skip to content

feat(skills): add devin platform target#630

Merged
platinummonkey merged 1 commit into
DataDog:mainfrom
samfert:feat/devin-skills-platform
Jul 2, 2026
Merged

feat(skills): add devin platform target#630
platinummonkey merged 1 commit into
DataDog:mainfrom
samfert:feat/devin-skills-platform

Conversation

@samfert

@samfert samfert commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Add Devin (Cognition's coding agent) as a supported platform for pup skills install, so pup's skills and domain agents install into Devin's skills directories.

Changes

  • Register devin in the platform registry (PLATFORMS) and the CLI SkillsPlatform enum + as_canonical arm in src/skills.rs. Both project- and user-scope skills resolve to .agents/skills (i.e. <repo>/.agents/skills/ and ~/.agents/skills/). Modeled on the cursor/codex entries: no aliases, no extensions, uses_agent_md: false — agents install as SKILL.md, not Claude-style <name>.md subagents.
  • List devin everywhere the supported platforms are surfaced to users: the skills --help text (src/main.rs), the resolve-error hints (src/commands/skills.rs), the README "Agent Skills" section (incl. install paths), and docs/COMMANDS.md.

Testing

  • cargo test — added positive + negative unit tests: lookup_platform("devin"), skills_dir for both scopes, and the SKILL.md-not-subagent format for agent entries. The existing platform_enum_matches_table passes with the new variant. (The only failures in the full suite are 5 pre-existing, network/DNS-dependent tests unrelated to this change, verified identical on clean main.)
  • cargo clippy --all-targets -- -D warnings — clean.
  • cargo fmt --check — clean.
  • Live check (release build): pup skills install devin --project writes 59 SKILL.md files under <repo>/.agents/skills/ and pup skills install devin writes them under ~/.agents/skills/ — zero <name>.md files in both. Verified pup skills path devin for user and --project scopes.

Related Issues

N/A


Generated with Devin

@samfert samfert requested a review from a team as a code owner July 2, 2026 13:19
Add Devin (Cognition's coding agent) as a supported platform for
`pup skills install`. Devin reads skills from `.agents/skills/`
(project-local) and `~/.agents/skills/` (user-global); like cursor and
codex it uses `SKILL.md` files, not Claude-style `<name>.md` subagents.

- Register `devin` in PLATFORMS and add the SkillsPlatform::Devin
  variant (+ as_canonical arm), kept in sync by platform_enum_matches_table
- Auto-detect Devin sessions via DEVIN_SESSION_ID. Because that variable
  is a per-session id rather than a truthy flag, detect it by presence of
  a non-empty value, without changing the existing truthy detector table
- Surface `devin` in the `skills` --help text, the resolve error hints,
  the README Agent Skills section, and docs/COMMANDS.md
- Add positive and negative unit tests: lookup, install paths for both
  scopes, SKILL.md (not subagent) format, and env detection

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@samfert samfert force-pushed the feat/devin-skills-platform branch from 2f18455 to b333373 Compare July 2, 2026 13:32
@platinummonkey platinummonkey merged commit a723ed1 into DataDog:main Jul 2, 2026
6 checks passed
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