Repository navigation
Fix skills.sh audit findings #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,11 +3,14 @@ | |
| Use this when the Jam MCP tools are not connected. Set up once per environment: | ||
|
|
||
| ```bash | ||
| command -v jam >/dev/null || curl -fsSL https://native.jam.dev/install | bash | ||
| command -v jam >/dev/null || echo "jam is not installed" | ||
| export PATH="$HOME/.local/bin:$PATH" | ||
| jam auth status --json || jam auth login | ||
| ``` | ||
|
|
||
| If `jam` is not on PATH, stop and ask the user to install it from | ||
| https://jam.dev/cli, then continue. Do not install it yourself. | ||
|
|
||
| Exit code 3 means not signed in. With no browser (CI, a cloud agent), ask the | ||
| user to set `JAM_TOKEN` to a personal access token from | ||
| https://jam.dev/s/settings/mcp as a secret. Never write a token to a file. | ||
|
|
@@ -50,7 +53,14 @@ and run it with a trace. Upload both artifacts: | |
| ```bash | ||
| npx playwright test <file> --trace on | ||
| ffmpeg -i test-results/<test>/video.webm after.mp4 | ||
| jam create jam '{"kind":"video","url":"<page url>","title":"<the claim>","videoPath":"after.mp4","playwrightTracePath":"test-results/<test>/trace.zip","screenDimensions":{"width":1280,"height":720}}' | ||
| jam create jam @payload.json | ||
| ``` | ||
|
|
||
| Write `payload.json` with your file-writing tool; user and page text never goes | ||
| into a shell argument: | ||
|
baransu marked this conversation as resolved.
Comment on lines
+59
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| ```json | ||
| {"kind":"video","url":"<page url>","title":"<the claim>","videoPath":"after.mp4","playwrightTracePath":"test-results/<test>/trace.zip","screenDimensions":{"width":1280,"height":720}} | ||
| ``` | ||
|
|
||
| Use the test's viewport for `screenDimensions`. Put the bug Jam's URL in the | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,14 +17,19 @@ Skip recording when there is nothing to show on screen, and say so. | |
| ## Set up the CLI | ||
|
|
||
| ```bash | ||
| command -v jam >/dev/null || curl -fsSL https://native.jam.dev/install | bash | ||
| command -v jam >/dev/null || echo "jam is not installed" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Installed Jam CLI reported missing When Learn moreThe setup block is shared by jam-proof, jam-annotate, and both CLI references. It checks for Example: A user has Recommended fix: In each of the four matching setup blocks, add Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| export PATH="$HOME/.local/bin:$PATH" | ||
| jam auth status --json || jam auth login | ||
| ``` | ||
|
|
||
| If `jam` is not on PATH, stop and ask the user to install it from | ||
| https://jam.dev/cli, then continue. Do not install it yourself. | ||
|
|
||
| Exit code 3 means not signed in. With no browser (CI, a cloud agent), ask the | ||
| user to set `JAM_TOKEN` to a personal access token from | ||
| https://jam.dev/s/settings/mcp as a secret. Never write a token to a file. | ||
| Titles and comments are short claims you wrote. Never paste user or page text | ||
| into a shell argument. | ||
| `jam doctor` checks recording readiness; `jam agent-context` prints every | ||
| command and flag. | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.