Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/cli-v1-agent-install/skill-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ because <X>. Treat this as unverified until that's resolved." Don't claim done.

```bash
testsprite --version # CLI installed?
testsprite auth whoami # credentials configured?
testsprite auth status # credentials configured?
```

- `--version` fails → the CLI isn't installed. Tell the user to install the
TestSprite CLI (see the TestSprite docs) and stop; don't install it for them.
- `auth whoami` fails → no credentials. Tell the user they can run
`testsprite auth configure`, then stop.
- `auth status` fails → no credentials. Tell the user they can run
`testsprite setup`, then stop.

## 2. Find the project

Expand Down
4 changes: 2 additions & 2 deletions skills/testsprite-verify.codex.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ build/config changes, or when the repo has no TestSprite project linked.

```bash
testsprite --version # CLI installed?
testsprite auth whoami # credentials valid?
testsprite auth status # credentials valid?
```

If `--version` fails, tell the user to install the CLI and stop.
If `auth whoami` fails, tell the user to run `testsprite auth configure` and stop.
If `auth status` fails, tell the user to run `testsprite setup` and stop.

### 2. Find the project

Expand Down
6 changes: 3 additions & 3 deletions skills/testsprite-verify.skill.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ because <X>. Treat this as unverified until that's resolved." Don't claim done.

```bash
testsprite --version # CLI installed?
testsprite auth whoami # credentials configured?
testsprite auth status # credentials configured?
```

- `--version` fails → the CLI isn't installed. Tell the user to install the
TestSprite CLI (see the TestSprite docs) and stop; don't install it for them.
- `auth whoami` fails → no credentials. Tell the user they can run
`testsprite auth configure`, then stop.
- `auth status` fails → no credentials. Tell the user they can run
`testsprite setup`, then stop.

## 2. Find the project

Expand Down
21 changes: 21 additions & 0 deletions src/lib/agent-targets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,27 @@ describe('loadCodexSkillBody', () => {
});
});

// ---------------------------------------------------------------------------
// content integrity — current auth command names
// ---------------------------------------------------------------------------

describe('content integrity — testsprite-verify auth commands', () => {
it('uses current auth/setup commands in every canonical verify skill asset', () => {
const assets = [
['docs template', templateRaw],
['own-file skill body', loadSkillBodyFor('testsprite-verify')],
['codex skill body', codexContentFor('testsprite-verify')],
] as const;

for (const [name, content] of assets) {
expect(content, name).toContain('testsprite auth status');
expect(content, name).toContain('testsprite setup');
expect(content, name).not.toContain('auth whoami');
expect(content, name).not.toContain('auth configure');
}
});
});

// ---------------------------------------------------------------------------
// MANAGED_SECTION sentinels
// ---------------------------------------------------------------------------
Expand Down
Loading