Skip to content

chore: add agent skill for adding CLI commands - #730

Merged
arjankowski merged 2 commits into
mainfrom
SDK-6867
Oct 23, 2026
Merged

arjankowski merged 2 commits into
mainfrom
SDK-6867

Conversation

@arjankowski

Copy link
Copy Markdown
Contributor

Add the add-box-cli-command skill under .claude/skills, read by Claude Code and Cursor. It guides agents through wrapping a box-node-sdk method as a CLI command: resolving the SDK method, agreeing the command interface with the user, writing tests first, and regenerating docs.

Add the add-box-cli-command skill under .claude/skills, read by Claude
Code and Cursor. It guides agents through wrapping a box-node-sdk
method as a CLI command: resolving the SDK method, agreeing the
command interface with the user, writing tests first, and
regenerating docs.
@arjankowski
arjankowski requested a review from a team October 22, 2026 08:29
@coveralls

coveralls commented Oct 22, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 39947517199

Coverage increased (+0.04%) to 84.953%

Details

  • Coverage increased (+0.04%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 6061
Covered Lines: 5397
Line Coverage: 89.04%
Relevant Branches: 2153
Covered Branches: 1581
Branch Coverage: 73.43%
Branches in Coverage %: Yes
Coverage Strength: 642.63 hits per line

💛 - Coveralls

Comment thread .claude/skills/add-box-cli-command/SKILL.md Outdated
Comment thread .claude/skills/add-box-cli-command/SKILL.md Outdated

## Inputs

- **SDK method** as `<manager>.<method>`, e.g. `hubCollaborations.createHubCollaborationV2025R0`. If the user describes the operation instead, find the method by its API path (step 1).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we can mention to always use sdk-gen package for the new comands

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added


The SDK types many constrained fields as plain `string`. Hub collaboration `role` is `string` in the SDK, while the API accepts only `editor`, `viewer`, and `co-owner`. The SDK also omits required permissions and scopes, and which errors deserve an explanation in help text.

Check the [Box API reference](https://developer.box.com/reference/) for the endpoint. Every gap left after that becomes a question for step 4.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe we should Box open api schema instead

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added

- use plain `grep` instead of `rg`, which macOS does not ship
- take test structure from references/testing.md rather than sibling
  tests, document the two `test` chain shapes that never run, and set up
  per-case stubs with `.do()`
- require the generated SDK (`sdk-gen`, `this.tsClient`) for new commands
- read accepted values, defaults, and required fields from the Box
  OpenAPI schema, keeping the API reference for scopes and permissions

@lukaszsocha2 lukaszsocha2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@arjankowski
arjankowski merged commit 34d7517 into main Oct 23, 2026
19 checks passed
@arjankowski
arjankowski deleted the SDK-6867 branch October 23, 2026 12:19
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.

4 participants