Skip to content

Commit 5bb214e

Browse files
committed
Clarify installed skill client path resolution
1 parent 15a56df commit 5bb214e

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,16 @@ Install `skills/taskcontext/` into your coding agent's skills directory, or use
5757
npx skills add pocketcontext/taskcontext --skill taskcontext
5858
```
5959

60+
In the commands below, replace `/absolute/path/to/installed/taskcontext` with the directory containing your installed `SKILL.md`. Invoke the client by its quoted absolute path from any working directory.
61+
6062
The portable client requires Python 3, `TASKCONTEXT_URL`, and `TASKCONTEXT_USER_EMAIL`, supplied outside source control. For password authentication, also supply `TASKCONTEXT_USER_PASSWORD`:
6163

6264
```sh
6365
export TASKCONTEXT_URL=https://tasks.pocketcontext.com
6466
export TASKCONTEXT_USER_EMAIL=member@example.com
6567
export TASKCONTEXT_USER_PASSWORD=... # from your secret store
66-
python3 skills/taskcontext/scripts/tc.py whoami
67-
python3 skills/taskcontext/scripts/tc.py check
68+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" whoami
69+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" check
6870
```
6971

7072
For Google authentication, omit the password and follow the Google Workspace setup below.
@@ -97,7 +99,7 @@ Then, on the SSH host:
9799
```sh
98100
export TASKCONTEXT_URL=https://tasks.pocketcontext.com
99101
export TASKCONTEXT_USER_EMAIL=member@example.com
100-
python3 skills/taskcontext/scripts/tc.py login --google
102+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" login --google
101103
```
102104

103105
Open the printed authorization URL in your laptop's browser and choose the configured Workspace account. The callback travels through SSH to the client's loopback listener; the client checks state, uses PKCE, verifies the returned email, and closes the listener after completion or timeout. No browser is required on the SSH host. When running locally, the same login command works without a tunnel. This uses a direct callback rather than PocketBase's realtime OAuth flow. Login waits up to 180 seconds by default; `--timeout` accepts 1–600 seconds. To use `--port` with another port, register the corresponding redirect URI with Google and change the SSH forwarding port too.

‎skills/taskcontext/SKILL.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ description: Operate TaskContext projects and issues through authenticated SQL r
77

88
TaskContext is a shared issue tracker. Humans and coding agents use the same `users` identity. Assignment is responsibility, not a privacy boundary: every authenticated user can read and change the shared business records.
99

10-
Use the portable Python standard-library client `scripts/tc.py` by its full path. The environment must supply `TASKCONTEXT_URL` and `TASKCONTEXT_USER_EMAIL`. Authenticate with `login --google` or supply `TASKCONTEXT_USER_PASSWORD` for password authentication. Use HTTPS except on localhost. If configuration is missing, tell the user which variables to set; do not search files for credentials. Ordinary work requires a user account, never operator credentials. Do not put credentials in commands or responses. Tokens are cached privately in `~/.cache/taskcontext/` (or `XDG_CACHE_HOME`) and removed with `logout`.
10+
Paths in this skill are relative to the directory containing the installed `SKILL.md`. Resolve the portable Python standard-library client as `<skill-directory>/scripts/tc.py` and invoke it with `python3` using its quoted absolute path; it works from any working directory. Check that exact location before reporting the client missing, including when the skill is installed in a hidden directory such as `.agents/skills/`.
11+
12+
The environment must supply `TASKCONTEXT_URL` and `TASKCONTEXT_USER_EMAIL`. Authenticate with `login --google` or supply `TASKCONTEXT_USER_PASSWORD` for password authentication. Use HTTPS except on localhost. If configuration is missing, tell the user which variables to set; do not search files for credentials. Ordinary work requires a user account, never operator credentials. Do not put credentials in commands or responses. Tokens are cached privately in `~/.cache/taskcontext/` (or `XDG_CACHE_HOME`) and removed with `logout`.
1113

1214
Google login requires the human to open the printed URL. Never request their Google password or client secret. Read the [authentication workflow](references/workflows.md#authentication) for SSH forwarding, setup prerequisites, session renewal, and login failures. After an OAuth session expires, ask the human to run `login --google` again. With Workspace JIT enabled, first login provisions the user. Disabled accounts require operator review; do not attempt to bypass access restrictions.
1315

1416
Start with `whoami` to identify your account and `check` to compare the live schema with the bundled snapshot. Read [schema.md](references/schema.md) before writing or joining tables, [workflows.md](references/workflows.md) for workflow rules and retries, and [examples.md](references/examples.md) for queries and payloads.
1517

18+
In command summaries below and the workflow reference, `tc.py` stands for `python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py"`; substitute the path resolved from this `SKILL.md`.
19+
1620
```text
1721
tc.py login --google # human completes browser sign-in
1822
tc.py whoami | check | schema | newid | logout

‎skills/taskcontext/references/examples.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Examples
22

3-
Use real IDs resolved by SQL in place of placeholders. Shell examples contain trusted static text; serialize retrieved data and pass it on stdin instead of interpolating it.
3+
Replace `/absolute/path/to/installed/taskcontext` with the directory containing the installed `SKILL.md`, as described in [client setup](../SKILL.md). These commands work from any working directory. Use real IDs resolved by SQL in place of placeholders. Shell examples contain trusted static text; serialize retrieved data and pass it on stdin instead of interpolating it.
44

55
```sh
6-
python3 scripts/tc.py query 'SELECT id, key, name FROM projects WHERE archived = 0 ORDER BY key LIMIT 100'
7-
python3 scripts/tc.py query 'SELECT id, name FROM user_directory ORDER BY name, id LIMIT 100'
8-
python3 scripts/tc.py query 'SELECT id, key, title, status, revision FROM issues ORDER BY updated DESC, id LIMIT 50'
9-
python3 scripts/tc.py create projects '{"key":"APP","name":"Application"}'
10-
python3 scripts/tc.py create issues '{"project":"<project-id>","title":"Fix keyboard focus","type":"bug","priority":"high"}'
11-
python3 scripts/tc.py update issues '<issue-id>' '{"status":"in_progress","expected_revision":1}'
12-
python3 scripts/tc.py update issues '<issue-id>' '{"status":"done","resolution":"completed","expected_revision":2}'
13-
python3 scripts/tc.py update issues '<issue-id>' '{"status":"ready","resolution":"","expected_revision":3}'
6+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" query 'SELECT id, key, name FROM projects WHERE archived = 0 ORDER BY key LIMIT 100'
7+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" query 'SELECT id, name FROM user_directory ORDER BY name, id LIMIT 100'
8+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" query 'SELECT id, key, title, status, revision FROM issues ORDER BY updated DESC, id LIMIT 50'
9+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" create projects '{"key":"APP","name":"Application"}'
10+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" create issues '{"project":"<project-id>","title":"Fix keyboard focus","type":"bug","priority":"high"}'
11+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" update issues '<issue-id>' '{"status":"in_progress","expected_revision":1}'
12+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" update issues '<issue-id>' '{"status":"done","resolution":"completed","expected_revision":2}'
13+
python3 "/absolute/path/to/installed/taskcontext/scripts/tc.py" update issues '<issue-id>' '{"status":"ready","resolution":"","expected_revision":3}'
1414
```
1515

1616
Ready issues without unfinished blockers:

0 commit comments

Comments
 (0)