prodev skill: add price/vendor/product_type fields to DB entries
This commit is contained in:
parent
2df14f1694
commit
c556d5fecd
2 changed files with 63 additions and 24 deletions
|
|
@ -23,29 +23,35 @@ When Connor needs to justify a training, tool, book, course, or other profession
|
|||
- Resource name or URL (visit the URL to get accurate details)
|
||||
- Specific topics it covers
|
||||
|
||||
2. Write a single, direct paragraph.
|
||||
2. **Research the resource.** If Connor provides a URL, fetch the page to get accurate details about contents, format, and topics. Also try to extract:
|
||||
- **Price** — look for pricing on the page
|
||||
- **Vendor** — identify the creator/company selling it
|
||||
- **Product type** — classify it (e.g., `educational course`, `book`, `subscription`, `conference`, `tool`)
|
||||
|
||||
3. Do not ask follow-up questions or offer alternatives — just produce the paragraph.
|
||||
If any of these cannot be determined from the URL, ask Connor as a follow-up before proceeding.
|
||||
|
||||
3. Write a single, direct paragraph.
|
||||
|
||||
4. Save the file to `~/notes/Inbox/agent/`. Use the format `YYMMDD-pro-dev-[short-name].md`.
|
||||
|
||||
5. **Create a database entry** using the script:
|
||||
```bash
|
||||
uv run --with pymongo ~/notes/skills/professional-development-business-case/scripts/prodev_tasks.py create "<paragraph>"
|
||||
uv run --with pymongo ~/notes/skills/professional-development-business-case/scripts/prodev_tasks.py create "<paragraph>" --price <price> --vendor "<vendor>" --product-type "<product type>"
|
||||
```
|
||||
This inserts into `wip.agent_tasks` with `type: "prodev expense"` and `status: "todo"`. Save the returned document ID.
|
||||
This inserts into `wip.agent_tasks` with `type: "prodev expense"`, `status: "todo"`, and metadata fields `price`, `vendor`, `product_type`. Save the returned document ID.
|
||||
|
||||
6. **If Connor asks to update the wording**, update both the saved file AND the database entry:
|
||||
```bash
|
||||
uv run --with pymongo ~/notes/skills/professional-development-business-case/scripts/prodev_tasks.py update <document_id> "<updated_paragraph>"
|
||||
```
|
||||
You can also update individual metadata fields with `--price`, `--vendor`, `--product-type`.
|
||||
|
||||
## Database Commands
|
||||
|
||||
The script supports three commands:
|
||||
- `create "<note>"` — insert a new prodev expense entry
|
||||
- `update <doc_id> "<note>"` — update the note for an existing entry
|
||||
- `list` — list all prodev expense entries
|
||||
- `create "<note>" [--price PRICE] [--vendor VENDOR] [--product-type TYPE]` — insert a new prodev expense entry
|
||||
- `update <doc_id> "<note>" [--price PRICE] [--vendor VENDOR] [--product-type TYPE]` — update the note and/or metadata for an existing entry
|
||||
- `list` — list all prodev expense entries with price, vendor, and product type
|
||||
|
||||
## Rules
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue