Skip to content

Commit 14abdf7

Browse files
Kasper Jungeclaude
authored andcommitted
docs: deduplicate troubleshooting from CLI reference for users who want one clear place to debug issues
The reference page had ~65 lines of troubleshooting content that duplicated (with less detail) the dedicated Troubleshooting page. Replaced with a cross-link to avoid user confusion and content divergence. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9eef0f7 commit 14abdf7

1 file changed

Lines changed: 3 additions & 62 deletions

File tree

docs/docs/reference.md

Lines changed: 3 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -259,65 +259,6 @@ Note: `dependencies` must appear before any `[[source]]` blocks in `agr.toml`.
259259

260260
## Troubleshooting
261261

262-
### Skill not found
263-
264-
Check that the skill exists in the repository. agr recursively searches for any
265-
directory matching the skill name that contains `SKILL.md`. Common locations:
266-
267-
- `skills/{name}/SKILL.md`
268-
- `resources/skills/{name}/SKILL.md`
269-
- `{name}/SKILL.md`
270-
271-
Any nesting depth works. The shallowest match is used when duplicates exist.
272-
273-
### Skill already exists
274-
275-
Use `--overwrite`:
276-
277-
```bash
278-
agr add user/skill --overwrite
279-
```
280-
281-
### Repository not found
282-
283-
Check:
284-
285-
- Username and repo name are correct
286-
- Repository is public, **or** you have `GITHUB_TOKEN` / `GH_TOKEN` set (see
287-
[Private Repositories](configuration.md#private-repositories))
288-
- The repository's default branch exists (agr auto-detects it)
289-
290-
### Authentication failed
291-
292-
If you see "Authentication failed" or "Repository not found" for a private repo:
293-
294-
1. Ensure `GITHUB_TOKEN` or `GH_TOKEN` is set in your environment
295-
2. Verify the token has read access to the repository
296-
3. Check the token hasn't expired
297-
298-
```bash
299-
# Quick test — should show your username
300-
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user | grep login
301-
```
302-
303-
!!! note
304-
GitHub returns "not found" (not "forbidden") for private repos you can't
305-
access. If you see "Repository not found" for a repo you know exists, it's
306-
almost always an authentication issue.
307-
308-
### Git not installed
309-
310-
Remote installs require `git` to be available on your system.
311-
312-
### Not in a git repository
313-
314-
`agrx` requires a git repository (or use `--global`):
315-
316-
```bash
317-
agrx user/skill --global
318-
```
319-
320-
### Network errors
321-
322-
Ensure the repository is accessible and you have internet access. For private
323-
repos, ensure your token is valid (see above).
262+
See the [Troubleshooting](troubleshooting.md) page for solutions to common
263+
errors — installation failures, handle format issues, authentication problems,
264+
and more.

0 commit comments

Comments
 (0)