@shanvit7/poiesis 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,143 @@
1
+ ---
2
+ name: agent-browser
3
+ description: >
4
+ The tutor's live web research tool. Use agent-browser any time the tutor
5
+ needs to consult an authoritative source instead of relying on training
6
+ knowledge — official docs, RFCs, tutorials, package pages, error references,
7
+ or any online material relevant to what the student is learning.
8
+
9
+ **When to reach for this (Poiesis context):**
10
+
11
+ 1. TEACHING — before explaining a concept, look up the official docs or a
12
+ canonical reference so the explanation is accurate and current, not a
13
+ recollection. Examples: MDN for Web APIs, docs.python.org for stdlib,
14
+ the framework's own getting-started guide for a chapter topic.
15
+
16
+ 2. IN DEBATE — the student challenges a claim ("I read somewhere that X is
17
+ wrong"). Don't argue from memory. Open the authoritative source live,
18
+ quote it, and resolve it from evidence.
19
+
20
+ 3. SELF-CONFLICT — the tutor notices it's unsure or that two things it
21
+ knows might contradict each other. Stop, look it up, confirm before
22
+ continuing. A tutor who guesses and is wrong is worse than one who says
23
+ "let me check".
24
+
25
+ 4. PACKAGE / API RESEARCH — before writing code that uses any library,
26
+ check the actual API signature and config shape. Never hallucinate
27
+ method names or option keys.
28
+
29
+ 5. ERROR LOOKUP — when a command or test fails with an unfamiliar error,
30
+ search for the error message or look up the tool's error reference.
31
+
32
+ The rule: if it's version-sensitive, config-sensitive, or the tutor would
33
+ say "I think..." — use agent-browser instead of thinking.
34
+ allowed-tools: Bash(agent-browser:*), Bash(npx agent-browser:*)
35
+ ---
36
+
37
+ # agent-browser (Poiesis)
38
+
39
+ Fast browser automation CLI for AI agents. Chrome/Chromium via CDP with
40
+ accessibility-tree snapshots and compact `@eN` element refs.
41
+
42
+ Install (global, one-time): `npm i -g agent-browser && agent-browser install`
43
+
44
+ ## Start here
45
+
46
+ Before running any `agent-browser` command, load the live workflow guide:
47
+
48
+ ```bash
49
+ agent-browser skills get core # workflows, patterns, troubleshooting
50
+ agent-browser skills get core --full # full command reference
51
+ ```
52
+
53
+ ## Poiesis: how to use this as a tutor
54
+
55
+ ### Teaching — look up the reference before explaining
56
+
57
+ ```bash
58
+ agent-browser open "https://developer.mozilla.org/en-US/docs/Web/API/<topic>"
59
+ agent-browser snapshot
60
+ # read the definition / spec / examples
61
+ agent-browser close
62
+ ```
63
+
64
+ Same pattern for any docs:
65
+ - Framework docs: `https://hono.dev/docs`, `https://fastapi.tiangolo.com`, etc.
66
+ - Language stdlib: `https://docs.python.org/3/library/<module>.html`
67
+ - RFCs: `https://datatracker.ietf.org/doc/html/rfc<N>`
68
+ - Official tutorials linked from the chapter content
69
+
70
+ ### In debate — settle it from the source
71
+
72
+ Student says "I thought async/await was just syntactic sugar with no performance
73
+ difference" and you're not 100% sure of the nuance:
74
+
75
+ ```bash
76
+ agent-browser open "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function"
77
+ agent-browser snapshot
78
+ # find the authoritative answer, quote it directly to the student
79
+ agent-browser close
80
+ ```
81
+
82
+ Don't argue from memory. Cite the source.
83
+
84
+ ### Self-conflict — when you're unsure
85
+
86
+ If the tutor catches itself about to say "I believe..." or holds two
87
+ contradicting ideas:
88
+
89
+ ```bash
90
+ agent-browser open "<most authoritative URL for the topic>"
91
+ agent-browser snapshot
92
+ ```
93
+
94
+ Read the actual spec or docs, then answer.
95
+
96
+ ### Package / API research
97
+
98
+ ```bash
99
+ # pi packages
100
+ agent-browser open "https://pi.dev/packages/<name>"
101
+
102
+ # npm packages
103
+ agent-browser open "https://www.npmjs.com/package/<name>"
104
+
105
+ # GitHub README
106
+ agent-browser open "https://github.com/<owner>/<repo>#readme"
107
+
108
+ # skills.sh
109
+ agent-browser open "https://www.skills.sh/<org>/<repo>/<skill>"
110
+ ```
111
+
112
+ ### Error lookup
113
+
114
+ ```bash
115
+ agent-browser open "https://duckduckgo.com/?q=<error+message+quoted>"
116
+ agent-browser snapshot -i
117
+ agent-browser click @e<first-result-ref>
118
+ agent-browser snapshot
119
+ ```
120
+
121
+ Or go directly to the tool's error reference if known.
122
+
123
+ ## Core loop (quick reference)
124
+
125
+ ```bash
126
+ agent-browser open <url> # open page
127
+ agent-browser snapshot -i # interactive elements only
128
+ agent-browser snapshot # full content read
129
+ agent-browser click @e3 # act on a ref
130
+ agent-browser snapshot -i # re-snapshot after any change
131
+ agent-browser close # always close when done
132
+ ```
133
+
134
+ Refs go stale on every page change — always re-snapshot before the next action.
135
+
136
+ ## Specialized skills
137
+
138
+ ```bash
139
+ agent-browser skills get electron # VS Code, Slack, Discord, Figma
140
+ agent-browser skills get dogfood # exploratory QA / bug hunts
141
+ agent-browser skills get vercel-sandbox
142
+ agent-browser skills get agentcore # AWS Bedrock cloud browsers
143
+ ```