agentic-learning-framework 0.0.0-stage → 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.
- package/.agents/skills/study/SKILL.md +101 -0
- package/.agents/skills/study/agents/assessor.md +52 -0
- package/.agents/skills/study/agents/memory.md +112 -0
- package/.agents/skills/study/agents/observer.md +28 -0
- package/.agents/skills/study/agents/planner.md +67 -0
- package/.agents/skills/study/agents/reporter.md +78 -0
- package/.agents/skills/study/agents/tutor.md +66 -0
- package/.agents/skills/study/references/lifecycle.md +98 -0
- package/.agents/skills/study/references/memory-format.md +130 -0
- package/.agents/skills/study/references/reports.md +71 -0
- package/.agents/skills/study/references/research.md +61 -0
- package/CHANGELOG.md +16 -0
- package/LICENSE +21 -0
- package/README.md +200 -2
- package/bin/agentic-learning-framework.mjs +79 -0
- package/docs/RELEASE.md +73 -0
- package/examples/demo/admin.html +26 -0
- package/examples/demo/records.md +135 -0
- package/examples/demo/report.html +61 -0
- package/lib/install.mjs +182 -0
- package/package.json +39 -4
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Markdown memory format, version 1
|
|
2
|
+
|
|
3
|
+
Create these files as needed; never ship personal data inside the skill.
|
|
4
|
+
All IDs are collision-checked UUIDs. Folder names use IDs, never topic names,
|
|
5
|
+
learner text, arbitrary paths or untrusted filenames. Resolve every read/write
|
|
6
|
+
inside the chosen root; reject `..`, absolute path injections and symlink escapes.
|
|
7
|
+
The user can explicitly select a different root through configuration.
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
.learning/
|
|
11
|
+
learner.md
|
|
12
|
+
profile-revisions/<revision-id>.md
|
|
13
|
+
bindings/<binding-id>.md
|
|
14
|
+
goals/<goal-id>/
|
|
15
|
+
goal.md
|
|
16
|
+
specifications/<revision-id>.md
|
|
17
|
+
plans/<plan-id>.md
|
|
18
|
+
materials/<material-id>.md
|
|
19
|
+
events/<event-id>.md
|
|
20
|
+
report-records/<report-id>.md
|
|
21
|
+
reports/
|
|
22
|
+
index.html
|
|
23
|
+
<goal-id>/index.html
|
|
24
|
+
<goal-id>/daily/YYYY-MM-DD.html
|
|
25
|
+
<goal-id>/weekly/YYYY-Www.html
|
|
26
|
+
admin/<audience-id>/index.html
|
|
27
|
+
admin/<audience-id>/daily/YYYY-MM-DD.html
|
|
28
|
+
admin/<audience-id>/weekly/YYYY-Www.html
|
|
29
|
+
snapshots/<report-id>.html
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`goal.md` is the immutable initial specification, not a mutable current-state
|
|
33
|
+
file. New specification revisions reference it and their predecessor. A complete
|
|
34
|
+
event activates an approved revision/plan. Missing mutable indexes cannot lose
|
|
35
|
+
a goal. Reports are derived and can be regenerated. Each HTML is self-contained;
|
|
36
|
+
cross-report navigation is optional local linking.
|
|
37
|
+
|
|
38
|
+
## Learner, goal, plan and binding records
|
|
39
|
+
|
|
40
|
+
`learner.md`: schema version, learner UUID or pseudonym, selected data/report
|
|
41
|
+
roots, timezone, language, capabilities actually observed, profile revision ID,
|
|
42
|
+
global path or none, reuse consent, full-transcript consent, authorised audience
|
|
43
|
+
IDs/allowed fields or none. Changes go in profile-revisions and reference the
|
|
44
|
+
prior revision; conflicting profile revisions need reconciliation.
|
|
45
|
+
|
|
46
|
+
`goal.md`/specification: schema version, record ID, goal UUID, alias, created
|
|
47
|
+
timestamp/source, previous revision or none, state at creation, topic/boundaries,
|
|
48
|
+
purpose, measurable outcome/depth, baseline/diagnostic evidence, total minutes,
|
|
49
|
+
daily availability, deadline or none, plan/material references, constraints,
|
|
50
|
+
language, assessment choice, exit criteria, answered/unanswered onboarding
|
|
51
|
+
fields and next question. Use `unknown`/`none` explicitly; do not invent answers.
|
|
52
|
+
|
|
53
|
+
`plans/<plan-id>.md`: schema version, plan/goal IDs, previous plan ID or none,
|
|
54
|
+
created time, change reason, estimated-minute range and sum, assumptions,
|
|
55
|
+
approval event ID or pending. Objective table: objective/concept IDs, measurable
|
|
56
|
+
outcome, dependency IDs, priority, depth, estimate, rubric, source references.
|
|
57
|
+
Keep supplied syllabi unchanged in materials and link negotiated adaptations.
|
|
58
|
+
Approval event, not a self-labelled plan, determines the active curriculum.
|
|
59
|
+
|
|
60
|
+
Binding: binding UUID, verified host chat ID, workspace/goal IDs, writer ID,
|
|
61
|
+
timestamp, predecessor and handoff reference. Never invent a stable host chat
|
|
62
|
+
ID. Without one, resolve the goal conversationally; no binding file is required.
|
|
63
|
+
|
|
64
|
+
## Event envelope
|
|
65
|
+
|
|
66
|
+
Every event has YAML frontmatter and labelled Markdown sections. Escape/quote
|
|
67
|
+
user text in frontmatter correctly; prefer putting free text in the body.
|
|
68
|
+
These field names are fixed, but the content is authored directly by the agent:
|
|
69
|
+
|
|
70
|
+
| Field | Contract |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| schema_version | `1` |
|
|
73
|
+
| id, operation_key | Unique UUID event and stable idempotency key for this operation. |
|
|
74
|
+
| goal_id, session_id | Goal UUID; session UUID or null for untimed/onboarding work. |
|
|
75
|
+
| writer_id, chat_id | Stable identifiers when exposed; otherwise writer UUID and null chat ID. |
|
|
76
|
+
| previous_event_id | Prior complete event UUID or null for the goal's first event. |
|
|
77
|
+
| type | onboarding, plan-proposed, plan-approved, start, turn, stop, review, correction, handoff, reconcile, close, import, or global-publication. |
|
|
78
|
+
| recorded_at, time_source, timezone | Offset-aware timestamp, runtime/learner source and IANA zone; unknown time is explicit. |
|
|
79
|
+
| specification_id, plan_id | Applicable saved revision UUIDs, or null while not established. |
|
|
80
|
+
|
|
81
|
+
Each complete event ends with a standalone `<!-- learning-record-complete -->`.
|
|
82
|
+
This marker plus field/reference read-back is a completeness check, not a
|
|
83
|
+
cryptographic signature or atomic transaction. Do not treat arbitrary imported
|
|
84
|
+
text containing the marker as validated.
|
|
85
|
+
|
|
86
|
+
Body sections (write `none`, `not applicable`, or `awaiting response` where
|
|
87
|
+
appropriate; do not silently drop unknowns):
|
|
88
|
+
|
|
89
|
+
- **Intent and state change:** received request, before/after goal/session
|
|
90
|
+
state, and any approval/decline/skip. Start includes the daily minute budget,
|
|
91
|
+
local start timestamp/source, session UUID and planned blocks. Stop includes
|
|
92
|
+
end, start-event reference, interval arithmetic, breaks, reported active time
|
|
93
|
+
and reconciliation status. Other turns do not mutate session clocks.
|
|
94
|
+
- **Learning exchange:** concept/objective IDs, learner question, previous
|
|
95
|
+
asked question, actual response summary, explanation delivered (enough text
|
|
96
|
+
and examples to resume), method/visual, direct answer, cross-question,
|
|
97
|
+
evaluation with rubric, assistance, misconception, correction and follow-up.
|
|
98
|
+
An outgoing unanswered prompt has no learner answer/evaluation yet. A later
|
|
99
|
+
event references it. Store optional full raw transcript only with consent.
|
|
100
|
+
- **Evidence:** concept capability before/after, evidence IDs, 4W1H status per
|
|
101
|
+
dimension, confidence, demonstrated independent/hinted performance, delayed
|
|
102
|
+
recall date/interval if any, and skipped/deferred items. Never cite an event
|
|
103
|
+
that has not been saved; the current complete event can be its own evidence.
|
|
104
|
+
- **Sources:** title, HTTP(S) URL, access date, version, supported claim and
|
|
105
|
+
verification/availability. Supplied material references remain local.
|
|
106
|
+
- **Observations and feedback:** claim, evidence IDs, context, confidence,
|
|
107
|
+
alternative explanation, learner preference/dispute and next teaching action.
|
|
108
|
+
- **Review changes:** concept, due date, scheduling basis, previous review
|
|
109
|
+
reference, success/failure/skip/reschedule and next due date.
|
|
110
|
+
- **Checkpoint:** remaining objectives, unresolved doubts, next question/task,
|
|
111
|
+
latest plan/specification, pending writes/conflicts and next action.
|
|
112
|
+
|
|
113
|
+
## Deriving current state
|
|
114
|
+
|
|
115
|
+
Follow complete causal chains from the initial goal; do not rely on alphabetical
|
|
116
|
+
UUID order or timestamp alone. A normal goal has one head. Approved plans and
|
|
117
|
+
specifications change only at explicit transition events. Session state comes
|
|
118
|
+
from its start and first effective stop/reconciliation. Assessments, review due
|
|
119
|
+
dates and observations reference their evidence events. A later correction
|
|
120
|
+
changes interpretation without pretending the earlier event never existed.
|
|
121
|
+
|
|
122
|
+
Two heads from a common predecessor or conflicting operation keys require the
|
|
123
|
+
memory role's reconciliation. Until resolved, show the last common checkpoint
|
|
124
|
+
and list competing records; do not guess time or mastery. Missing references or
|
|
125
|
+
an incomplete event are visible pending repairs, never evidence of completion.
|
|
126
|
+
|
|
127
|
+
Report metadata: report UUID, audience/scope, generated/as-of time, exact input
|
|
128
|
+
event-head and profile/plan IDs, completeness/conflicts, immutable snapshot path,
|
|
129
|
+
canonical path if copied successfully, and known omissions. Record write/read
|
|
130
|
+
verification before linking. Reports must never be a source of invented events.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# HTML report contract
|
|
2
|
+
|
|
3
|
+
Use semantic HTML with embedded CSS, no executable content. A report is readable
|
|
4
|
+
offline from a local file with no server. Generate the final page directly;
|
|
5
|
+
the skill does not contain or create a report-generation script.
|
|
6
|
+
|
|
7
|
+
## Information hierarchy
|
|
8
|
+
|
|
9
|
+
Lead with: what the learner is working toward, what evidence changed, what is
|
|
10
|
+
still unclear, and the next useful action. Then show parallel, comparable facts:
|
|
11
|
+
planned minutes, elapsed minutes, optional break-adjusted minutes and optional
|
|
12
|
+
self-reported active minutes. Avoid a decorative mastery score.
|
|
13
|
+
|
|
14
|
+
Use separate sections/tables for the curriculum, demonstrated skills, 4W1H,
|
|
15
|
+
delayed recall, current daily plan, review queue and unresolved items. Details
|
|
16
|
+
elements can expose the saved Q&A history, teaching explanations, assistance,
|
|
17
|
+
citations, evidence IDs and plan changes without overwhelming the main view.
|
|
18
|
+
Show completed vs remaining vs skipped explicitly; introduced is not mastered.
|
|
19
|
+
|
|
20
|
+
Each observation has an evidence reference and confidence. Each assessment has
|
|
21
|
+
assistance and the relevant rubric. Each source has a human-readable title,
|
|
22
|
+
URL and access date. A demo banner must say all learner records are fictional.
|
|
23
|
+
Show missing records as “not assessed”, “not recorded”, or “unknown”, not zero.
|
|
24
|
+
|
|
25
|
+
## Layout and accessibility
|
|
26
|
+
|
|
27
|
+
- Set `lang`, charset, viewport and descriptive title; one h1 with ordered
|
|
28
|
+
heading levels, a main landmark and meaningful navigation labels.
|
|
29
|
+
- Use a calm high-contrast palette, readable font stack, generous spacing and
|
|
30
|
+
responsive grids. At narrow widths cards stack and long text wraps. Wide
|
|
31
|
+
tables have labelled horizontal-scroll containers.
|
|
32
|
+
- Status needs words as well as colour. Use native `details`/`summary` for Q&A,
|
|
33
|
+
visible keyboard focus, descriptive links and a skip-to-content link.
|
|
34
|
+
- Use static inline SVG with title/description, HTML/CSS diagrams or text.
|
|
35
|
+
Provide equivalent text for diagrams; do not depend on external Mermaid.
|
|
36
|
+
- Include a print layout and visible as-of timestamp, timezone, input revision,
|
|
37
|
+
audience, and any unresolved conflicts. No motion is needed.
|
|
38
|
+
- Every page includes its own style and content. It may link other local report
|
|
39
|
+
pages, but its substantive content must work if copied alone.
|
|
40
|
+
|
|
41
|
+
## Safe text and links
|
|
42
|
+
|
|
43
|
+
Treat learner text, source titles and imported notes as untrusted. In HTML text
|
|
44
|
+
escape `&` then `<` and `>`; in attributes also escape both quote characters.
|
|
45
|
+
Never interpolate user content into CSS, SVG attributes, tag names, style,
|
|
46
|
+
event handlers, comments or raw markup. Render code/examples as escaped text.
|
|
47
|
+
An answer like `<img src=x onerror=alert(1)>` must display as text, not a tag.
|
|
48
|
+
|
|
49
|
+
Use agent-controlled element IDs and numeric CSS values only. Allow only
|
|
50
|
+
verified HTTP(S) research links and root-contained generated local report paths.
|
|
51
|
+
Reject `javascript:`, `data:`, protocol-relative and learner-supplied path links.
|
|
52
|
+
External links are optional user navigation, never resources fetched on load.
|
|
53
|
+
If using inline SVG, use only agent-authored static shapes/text, no foreignObject,
|
|
54
|
+
script, external references, animation or event attributes. Avoid embedding
|
|
55
|
+
private data into HTML comments or hidden sections.
|
|
56
|
+
|
|
57
|
+
Defence in depth: include a meta Content-Security-Policy with `default-src 'none';
|
|
58
|
+
style-src 'unsafe-inline'; img-src 'none'; base-uri 'none'; form-action 'none'`.
|
|
59
|
+
This supports CSS and static inline SVG without enabling images or scripts.
|
|
60
|
+
Escaping is still required. CSP behaviour can vary in local-file previews;
|
|
61
|
+
do not treat it as a substitute for excluding executable markup.
|
|
62
|
+
|
|
63
|
+
## Verify before linking
|
|
64
|
+
|
|
65
|
+
Read back the complete HTML. Check UTF-8, doctype, closing tags, landmarks,
|
|
66
|
+
heading order, no scripts/event handlers/network assets, escaped sample text,
|
|
67
|
+
root-contained local links, date/week range, arithmetic and evidence references.
|
|
68
|
+
Check no audience-excluded data exists anywhere in the file. Use an available
|
|
69
|
+
native browser/preview at desktop and mobile widths; if unavailable, state that
|
|
70
|
+
visual verification was not performed. Do not generate verification programs
|
|
71
|
+
as part of the learning workflow. Refreshes never change session start/end.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Research and provenance
|
|
2
|
+
|
|
3
|
+
Reviewed 29 November 2026. These are design references, not required installed
|
|
4
|
+
dependencies. The instructions and HTML in this repository are original. No
|
|
5
|
+
third-party skill text, code, templates or scripts were copied or installed.
|
|
6
|
+
Popularity alone is not evidence of teaching quality; no “best skill” ranking
|
|
7
|
+
or scientific outcome guarantee is claimed.
|
|
8
|
+
|
|
9
|
+
## Host compatibility
|
|
10
|
+
|
|
11
|
+
- [Antigravity skills](https://antigravity.google/docs/skills): current docs
|
|
12
|
+
describe workspace `.agents/skills/<name>/SKILL.md`, global
|
|
13
|
+
`~/.gemini/config/skills/<name>/`, optional scripts, and skill invocation.
|
|
14
|
+
Legacy `.agent/skills` compatibility is documented. This package uses the
|
|
15
|
+
current workspace path. Installed Antigravity/version was not available for
|
|
16
|
+
an end-to-end registration test; check that installation's Customizations UI.
|
|
17
|
+
- [Antigravity native /learn](https://antigravity.google/docs/commands/learn/):
|
|
18
|
+
this command captures agent knowledge into customizations. It collides with
|
|
19
|
+
the requested learning-goal name; use `/study` and natural-language aliases.
|
|
20
|
+
No `/learn`, `/start` or `/stop` registration is installed by this package.
|
|
21
|
+
- [Agent Skills specification](https://agentskills.io/specification): portable
|
|
22
|
+
SKILL.md format. Other hosts' discovery/invocation details still need checking.
|
|
23
|
+
|
|
24
|
+
## External learning-skill review
|
|
25
|
+
|
|
26
|
+
The [skills.sh directory](https://skills.sh/) and these source repositories were
|
|
27
|
+
inspected for relevant designs. This review does not establish that any one
|
|
28
|
+
skill meets all requirements or is appropriate to install unchanged.
|
|
29
|
+
|
|
30
|
+
| Source | Relevant idea reviewed | License status at review | Decision |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| [Jane Street socratic-tutor](https://github.com/janestreet/agent_skills/tree/master/socratic-tutor) | Diagnostic, one-question dialogue, review and final assessment. | [MIT license file inspected](https://github.com/janestreet/agent_skills/blob/master/LICENSE.md). | Write original, flexible tutoring instructions; permit direct answers and skipping. |
|
|
33
|
+
| [Agent Tutor](https://github.com/Bhala-Srinivash/agent-tutor-skill) | Teaching loop and concept-level evidence. | [MIT license file inspected](https://github.com/Bhala-Srinivash/agent-tutor-skill/blob/main/LICENSE). | Use original evidence rubrics. Do not copy its command name, fixed learning types or algorithm claims. |
|
|
34
|
+
| [Learning companion](https://github.com/cheahhl814/lf-skill) | Teach-back and staged learning checkpoints. | Repository declares MIT; direct LICENSE retrieval failed. | No reuse/installation; use independently authored universal guidance. |
|
|
35
|
+
|
|
36
|
+
The combined design is a self-contained orchestrator with planner, tutor,
|
|
37
|
+
assessor, observer, memory and reporter role instructions. It does not depend
|
|
38
|
+
on another skill being installed or on another model being called.
|
|
39
|
+
|
|
40
|
+
## Learning research
|
|
41
|
+
|
|
42
|
+
- [Carpenter, Pan & Butler (2022), The science of effective learning with spacing
|
|
43
|
+
and retrieval practice](https://www.nature.com/articles/s44159-022-00089-1):
|
|
44
|
+
publisher search abstract was accessible; full text retrieval was not.
|
|
45
|
+
Supports including spacing and retrieval as learning strategies, not a
|
|
46
|
+
universal fixed schedule or certainty of outcomes for every learner.
|
|
47
|
+
- [Kang et al. (2014), Retrieval practice over the long term](https://pubmed.ncbi.nlm.nih.gov/24744260/):
|
|
48
|
+
primary study abstract on expanding vs equal intervals. Schedule details
|
|
49
|
+
should depend on the task and desired retention interval.
|
|
50
|
+
- [Agarwal, researcher guidance on spacing](https://www.retrievalpractice.org/strategies/optimal-spacing):
|
|
51
|
+
practical guidance to distribute opportunities flexibly. The skill's
|
|
52
|
+
1/3/7/14/30-day schedule is explicitly a configurable heuristic.
|
|
53
|
+
|
|
54
|
+
The brief's [Teaching the science of learning](https://pmc.ncbi.nlm.nih.gov/articles/PMC5780548/)
|
|
55
|
+
page was blocked by a browser check during this review; no full-text claims are
|
|
56
|
+
attributed to it. Research is checked again during actual subject teaching.
|
|
57
|
+
|
|
58
|
+
Worked examples, fading support, self-explanation, interleaving and visuals are
|
|
59
|
+
teaching options selected by context and observed response. Do not represent
|
|
60
|
+
all design choices as separately validated by the above papers. 4W1H is an
|
|
61
|
+
organising framework, not a diagnostic instrument or validated mastery score.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0 — initial release candidate
|
|
4
|
+
|
|
5
|
+
Prepared 29 November 2026.
|
|
6
|
+
|
|
7
|
+
- Script-free study orchestrator with planner, tutor, assessor, observer,
|
|
8
|
+
memory and reporting role instructions.
|
|
9
|
+
- Goal onboarding, hour-based plans, adaptive Q&A, 4W1H checks, independent
|
|
10
|
+
assessments, revision and durable Markdown checkpoints.
|
|
11
|
+
- Offline learner and approved teacher/admin HTML report contracts and
|
|
12
|
+
fictional report previews.
|
|
13
|
+
- Dependency-free npm/npx installer with `init`, `--dry-run`, `doctor`, safe
|
|
14
|
+
repeat installation, custom-skill preservation and privacy exclusions.
|
|
15
|
+
- Explicit public package allowlist; no private learner state in releases.
|
|
16
|
+
- Node built-in tests for installer behaviour and source-preserving installs.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agentic Learning contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,201 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agentic Learning Framework
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Learn any subject with your existing AI agent: set a goal, make a realistic
|
|
4
|
+
plan, learn through questions and examples, and keep evidence of what you can
|
|
5
|
+
actually explain and apply.
|
|
6
|
+
|
|
7
|
+
For students, interns, teachers, professionals, interview candidates, and
|
|
8
|
+
curious learners. Antigravity is the primary target; the `SKILL.md` bundle is
|
|
9
|
+
portable to agents that support workspace skills or reading local instructions.
|
|
10
|
+
|
|
11
|
+
The learning framework is **script-free**. Its orchestrator and six roles are
|
|
12
|
+
Markdown instructions. Your host agent reads/writes local Markdown memory and
|
|
13
|
+
authors offline HTML/CSS reports directly. There is no learning server, database,
|
|
14
|
+
separate model API, JavaScript report runtime, telemetry, or background worker.
|
|
15
|
+
|
|
16
|
+
The npm package adds a small, dependency-free Node.js **installer** outside the
|
|
17
|
+
skill. It copies the instructions and protects private data paths in `.gitignore`.
|
|
18
|
+
Node.js is needed to use the installer; the installed learning skill does not
|
|
19
|
+
need Node.js to operate.
|
|
20
|
+
|
|
21
|
+
## Quick start
|
|
22
|
+
|
|
23
|
+
Requires Node.js 22 or later and npm/npx. Once the package is published, run
|
|
24
|
+
from the project where you want to learn:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npx agentic-learning-framework init
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or select a project directory:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
npx agentic-learning-framework init ./my-learning-project
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Open that project in Antigravity or your skill-capable agent and send:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
/study JavaScript
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
If slash commands are unavailable, say:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
Use the study skill to help me learn JavaScript for a frontend internship.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The agent asks one meaningful question at a time, finds your starting point,
|
|
49
|
+
establishes your purpose and available hours, and proposes a curriculum for
|
|
50
|
+
approval. Onboarding itself does not start a timer. Resources and an existing
|
|
51
|
+
roadmap are optional; if supplied, your roadmap is preserved.
|
|
52
|
+
|
|
53
|
+
Antigravity's native [/learn](https://antigravity.google/docs/commands/learn/)
|
|
54
|
+
captures agent knowledge, so this framework uses `/study` without replacing it.
|
|
55
|
+
Discovery/invocation can vary by host/version. Current [Antigravity skill
|
|
56
|
+
locations](https://antigravity.google/docs/skills) include workspace
|
|
57
|
+
`.agents/skills/<name>/`; reload skills or open a new chat if necessary.
|
|
58
|
+
|
|
59
|
+
## Installer commands
|
|
60
|
+
|
|
61
|
+
| Command | Behaviour |
|
|
62
|
+
| --- | --- |
|
|
63
|
+
| `npx agentic-learning-framework init [directory]` | Install `.agents/skills/study/` and append root private-data exclusions to `.gitignore`. |
|
|
64
|
+
| `npx agentic-learning-framework init [directory] --dry-run` | Preview actions without creating or changing files. |
|
|
65
|
+
| `npx agentic-learning-framework doctor [directory]` | Check skill content and privacy exclusions against the executing package version. |
|
|
66
|
+
| `npx agentic-learning-framework --help` | Show usage. |
|
|
67
|
+
| `npx agentic-learning-framework --version` | Show the package version. |
|
|
68
|
+
|
|
69
|
+
No install/postinstall hooks run. `init` does not read learner memory, copy demo
|
|
70
|
+
records into your project, start a goal, modify `AGENTS.md`, or make model/network
|
|
71
|
+
calls. npm itself downloads the public package when using npx. Existing identical
|
|
72
|
+
skills are reused; custom, extra or incomplete skill files cause a clear refusal
|
|
73
|
+
before replacement. Back up/move a customised `study` folder before installing a
|
|
74
|
+
different version. There is no destructive `--force` option.
|
|
75
|
+
|
|
76
|
+
The installed folder contains only 11 Markdown files:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
.agents/skills/study/
|
|
80
|
+
SKILL.md
|
|
81
|
+
agents/
|
|
82
|
+
planner.md
|
|
83
|
+
tutor.md
|
|
84
|
+
assessor.md
|
|
85
|
+
observer.md
|
|
86
|
+
memory.md
|
|
87
|
+
reporter.md
|
|
88
|
+
references/
|
|
89
|
+
lifecycle.md
|
|
90
|
+
memory-format.md
|
|
91
|
+
reports.md
|
|
92
|
+
research.md
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Manual installation also works: copy this complete folder into the host's
|
|
96
|
+
documented skills directory. No installer or Node.js is needed for that route.
|
|
97
|
+
|
|
98
|
+
## Learn, practise, resume
|
|
99
|
+
|
|
100
|
+
| Message to the agent | What happens |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| `/study <topic>` | Create a distinct goal or choose whether to resume an existing match. |
|
|
103
|
+
| `/study start <goal>` | Ask today's available hours, confirm local time, show a feasible plan and progress HTML, resume the checkpoint. |
|
|
104
|
+
| `/study stop <goal>` | Save remaining work, optional recall/reflection, elapsed time and fresh reports. “Stop now” closes immediately. |
|
|
105
|
+
| `/study report <goal> daily` | Compare today's plan and evidenced outcomes, including active-session provisional time. |
|
|
106
|
+
| `/study report <goal> weekly` | Summarise changes, retention, gaps, skips and suggested next steps. |
|
|
107
|
+
| `/study report all full` | Show independent goals without averaging unrelated mastery. |
|
|
108
|
+
| `/study goals` | List/select a goal for this chat. |
|
|
109
|
+
| `/study revise <goal>` | Practise due recall, one question at a time. |
|
|
110
|
+
| `/study admin report weekly` | Prepare a local learner-approved teacher/admin summary. |
|
|
111
|
+
| `/study memory inspect` | Inspect memory scope, consent, checkpoints and pending conflicts. |
|
|
112
|
+
| `/study memory export` / `backup` / `import` / `correct` / `delete` | Manage a specified scope through the agent's native file tools. |
|
|
113
|
+
|
|
114
|
+
Short `/start`, `/stop`, `/report`, `/weekly`, `/goals`, `/revise` and `/progress`
|
|
115
|
+
aliases work only if the host passes those messages to the agent. This package
|
|
116
|
+
does not register them as separate native commands. Plain language is supported.
|
|
117
|
+
|
|
118
|
+
Teaching combines simple explanations, worked examples, 4W1H (What, Why, When,
|
|
119
|
+
Where, How), one cross-question at a time, progressive hints, independent tasks,
|
|
120
|
+
and delayed recall. Learners can ask for a direct answer, change pace, skip,
|
|
121
|
+
dispute an assessment, or stop. Skipped items remain unverified in reports.
|
|
122
|
+
|
|
123
|
+
The planner, tutor, assessor, observer, memory steward and reporter are modular
|
|
124
|
+
roles coordinated by one orchestrator, not mandatory separate agents or paid
|
|
125
|
+
model calls. [Research and provenance](.agents/skills/study/references/research.md)
|
|
126
|
+
describe reviewed designs and learning references. No third-party skill is
|
|
127
|
+
installed automatically, and no learning-outcome guarantee is made.
|
|
128
|
+
|
|
129
|
+
## Memory and privacy
|
|
130
|
+
|
|
131
|
+
Runtime data defaults to `.learning/`, with HTML under `reports/`. The installer
|
|
132
|
+
adds these exclusions at the end of the project's `.gitignore`:
|
|
133
|
+
|
|
134
|
+
```gitignore
|
|
135
|
+
/.learning/
|
|
136
|
+
/.learning-global/
|
|
137
|
+
/reports/
|
|
138
|
+
/.learning-backups/
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
These rules do not encrypt files, remove already tracked data, or control local
|
|
142
|
+
filesystem access. The release uses an explicit public-file allowlist; real
|
|
143
|
+
learning records, reports, backups and credentials are not bundled.
|
|
144
|
+
|
|
145
|
+
Memory records onboarding, approved plan versions, useful Q&A summaries,
|
|
146
|
+
explanations, sources, corrections, assistance, skips and the next question.
|
|
147
|
+
Full transcripts, global cross-workspace summaries and teacher/admin audiences
|
|
148
|
+
are opt-in. No hidden reasoning or unrelated-chat capture. Admin HTML contains
|
|
149
|
+
only approved fields and is not an authenticated portal or automatic delivery.
|
|
150
|
+
|
|
151
|
+
Separate goals can run in separate chats. Explicit goal IDs/aliases are needed
|
|
152
|
+
when the host has no stable chat identifier. Use one writing chat per goal:
|
|
153
|
+
the Markdown protocol detects conflicts but cannot enforce database transactions
|
|
154
|
+
or lossless simultaneous same-goal edits. See the [memory protocol](.agents/skills/study/agents/memory.md).
|
|
155
|
+
|
|
156
|
+
## Offline reports
|
|
157
|
+
|
|
158
|
+
```text
|
|
159
|
+
reports/index.html
|
|
160
|
+
reports/<goal-id>/index.html
|
|
161
|
+
reports/<goal-id>/daily/YYYY-MM-DD.html
|
|
162
|
+
reports/<goal-id>/weekly/YYYY-Www.html
|
|
163
|
+
reports/admin/<audience-id>/index.html
|
|
164
|
+
reports/admin/<audience-id>/daily/YYYY-MM-DD.html
|
|
165
|
+
reports/admin/<audience-id>/weekly/YYYY-Www.html
|
|
166
|
+
reports/snapshots/<report-id>.html
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Reports separate curriculum coverage, independent capability and delayed
|
|
170
|
+
retention. They distinguish planned, elapsed, optional break-adjusted and
|
|
171
|
+
self-reported active minutes. Open sessions are provisional; forgotten stops
|
|
172
|
+
need reconciliation. No fabricated mastery percentage or verified-active-time
|
|
173
|
+
claim. HTML uses embedded CSS, static diagrams and native expandable details,
|
|
174
|
+
with escaped learner text and no JavaScript or remote assets.
|
|
175
|
+
|
|
176
|
+
The public [learner preview](examples/demo/report.html) and [teacher/admin
|
|
177
|
+
preview](examples/demo/admin.html) use only explicitly fictional
|
|
178
|
+
[demo evidence](examples/demo/records.md). No demo data is installed as memory.
|
|
179
|
+
|
|
180
|
+
## Test or release from this checkout
|
|
181
|
+
|
|
182
|
+
```sh
|
|
183
|
+
npm test
|
|
184
|
+
npm run check
|
|
185
|
+
mkdir -p dist
|
|
186
|
+
npm pack --pack-destination dist
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Before registry publication, the archive can be used locally:
|
|
190
|
+
|
|
191
|
+
```sh
|
|
192
|
+
npx --yes --package ./dist/agentic-learning-framework-0.1.0.tgz agentic-learning-framework init ./my-learning-project
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
The tests use Node's built-in test runner, isolated temporary projects, and no
|
|
196
|
+
external dependencies. [Release instructions](docs/RELEASE.md) describe the
|
|
197
|
+
tarball privacy check, npm authentication and publishing. Host registration and
|
|
198
|
+
real learning outcomes require separate testing; installer tests cannot prove
|
|
199
|
+
them. The agent must disclose missing file, clock, research or preview tools.
|
|
200
|
+
|
|
201
|
+
MIT licensed. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { resolve } from 'node:path';
|
|
5
|
+
import { inspectInstallation, install } from '../lib/install.mjs';
|
|
6
|
+
|
|
7
|
+
const packageRoot = fileURLToPath(new URL('../', import.meta.url));
|
|
8
|
+
const metadata = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8'));
|
|
9
|
+
const help = `Agentic Learning Framework ${metadata.version}
|
|
10
|
+
|
|
11
|
+
Install agent instructions for goal-based Q&A learning and HTML reports.
|
|
12
|
+
The installed skill is Markdown only; your existing agent does the teaching.
|
|
13
|
+
|
|
14
|
+
Usage:
|
|
15
|
+
agentic-learning-framework init [directory] [--dry-run]
|
|
16
|
+
agentic-learning-framework doctor [directory]
|
|
17
|
+
agentic-learning-framework --help
|
|
18
|
+
agentic-learning-framework --version
|
|
19
|
+
|
|
20
|
+
Commands:
|
|
21
|
+
init Copy the study skill into <directory>/.agents/skills/study.
|
|
22
|
+
Add local learning-data exclusions to .gitignore.
|
|
23
|
+
Existing identical files are reused; custom changes are preserved.
|
|
24
|
+
doctor Check that the installed skill matches this package and that
|
|
25
|
+
root learning-data paths are excluded from version control.
|
|
26
|
+
|
|
27
|
+
Options:
|
|
28
|
+
--dry-run Show init actions without creating or changing files.
|
|
29
|
+
--help Show this help.
|
|
30
|
+
--version Show the package version.
|
|
31
|
+
|
|
32
|
+
Directory defaults to the current working directory. No telemetry, model calls,
|
|
33
|
+
learner-data access, dependency installation, or background work.
|
|
34
|
+
|
|
35
|
+
After installation, open the project in your agent and send:
|
|
36
|
+
/study JavaScript
|
|
37
|
+
or: Use the study skill to help me learn JavaScript.
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const args = process.argv.slice(2);
|
|
42
|
+
if (args.length === 0 || (args.length === 1 && ['--help', '-h'].includes(args[0]))) {
|
|
43
|
+
process.stdout.write(help);
|
|
44
|
+
} else if (args.length === 1 && ['--version', '-v'].includes(args[0])) {
|
|
45
|
+
process.stdout.write(`${metadata.version}\n`);
|
|
46
|
+
} else {
|
|
47
|
+
const command = args.shift();
|
|
48
|
+
if (!['init', 'doctor'].includes(command)) throw new Error(`Unknown command: ${command}. Run with --help.`);
|
|
49
|
+
const positional = [];
|
|
50
|
+
let dryRun = false;
|
|
51
|
+
let literal = false;
|
|
52
|
+
for (const argument of args) {
|
|
53
|
+
if (!literal && argument === '--') literal = true;
|
|
54
|
+
else if (!literal && argument === '--dry-run' && command === 'init' && !dryRun) dryRun = true;
|
|
55
|
+
else if (!literal && argument.startsWith('-')) throw new Error(`Unsupported option: ${argument}. Run with --help.`);
|
|
56
|
+
else positional.push(argument);
|
|
57
|
+
}
|
|
58
|
+
if (positional.length > 1) throw new Error('Provide at most one project directory.');
|
|
59
|
+
const projectRoot = resolve(positional[0] ?? process.cwd());
|
|
60
|
+
if (command === 'doctor') {
|
|
61
|
+
const result = await inspectInstallation({ packageRoot, projectRoot });
|
|
62
|
+
if (result.ok) process.stdout.write(`Healthy: ${result.destination}\nAll ${result.fileCount} Markdown skill files match version ${metadata.version}; privacy exclusions are present.\n`);
|
|
63
|
+
else {
|
|
64
|
+
process.stderr.write(`Installation needs attention:\n${result.issues.map(issue => `- ${issue}`).join('\n')}\n`);
|
|
65
|
+
process.exitCode = 1;
|
|
66
|
+
}
|
|
67
|
+
} else {
|
|
68
|
+
const result = await install({ packageRoot, projectRoot, dryRun });
|
|
69
|
+
if (dryRun) {
|
|
70
|
+
process.stdout.write(`Dry run: ${result.destination}\n${result.skillExists ? 'Reuse the identical installed skill.' : `Install ${result.fileCount} Markdown skill files.`}\n${result.ignoreChanged ? 'Add missing private-data exclusions to .gitignore.' : 'Keep existing .gitignore unchanged.'}\nNo files changed.\n`);
|
|
71
|
+
} else {
|
|
72
|
+
process.stdout.write(`${result.skillExists ? 'Skill already installed' : 'Installed'}: ${result.destination}\n${result.ignoreChanged ? 'Updated .gitignore with private learning-data exclusions.' : 'Private learning-data exclusions already present.'}\nOpen this project in your agent and send /study JavaScript.\nIf slash commands are unavailable, say: Use the study skill to help me learn JavaScript.\nThe installer has not started a learning goal or changed learner memory.\n`);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
} catch (error) {
|
|
77
|
+
process.stderr.write(`agentic-learning-framework: ${error.message}\n`);
|
|
78
|
+
process.exitCode = 1;
|
|
79
|
+
}
|
package/docs/RELEASE.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Release procedure
|
|
2
|
+
|
|
3
|
+
The npm package is `agentic-learning-framework`; the display name is Agentic
|
|
4
|
+
Learning Framework. Version 0.1.0 is the first release candidate. Its initial
|
|
5
|
+
registry name lookup returned 404 on 29 November 2026; that is not a reservation
|
|
6
|
+
or a guarantee that the registry will accept the name at publication time.
|
|
7
|
+
|
|
8
|
+
## Prepare and inspect
|
|
9
|
+
|
|
10
|
+
From the source checkout, with Node.js 22 or later:
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm test
|
|
14
|
+
npm run check
|
|
15
|
+
mkdir -p dist
|
|
16
|
+
npm pack --json --pack-destination dist
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Inspect the actual archive file list, not just `.gitignore`. Permitted content:
|
|
20
|
+
the CLI in `bin/`, installer code in `lib/`, Markdown skill under
|
|
21
|
+
`.agents/skills/study/`, fictional `examples/demo/`, docs, changelog, README,
|
|
22
|
+
LICENSE, and npm package metadata. The archive must not contain `.learning/`,
|
|
23
|
+
`.learning-global/`, real `reports/`, backups, test projects, `.npmrc`, tokens,
|
|
24
|
+
environment files, Git metadata, caches or dependencies. The installed skill
|
|
25
|
+
must still consist exclusively of Markdown.
|
|
26
|
+
|
|
27
|
+
Test the archive itself in a disposable project outside this checkout:
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
npx --yes --package /absolute/path/agentic-learning-framework-0.1.0.tgz agentic-learning-framework init /path/to/disposable-project
|
|
31
|
+
npx --yes --package /absolute/path/agentic-learning-framework-0.1.0.tgz agentic-learning-framework doctor /path/to/disposable-project
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Check byte-for-byte skill content, preserved project instructions, private-data
|
|
35
|
+
exclusions, repeat installation, and no learner state or demo copied into the
|
|
36
|
+
project. The installer has no model/API calls, install hooks or dependencies.
|
|
37
|
+
|
|
38
|
+
## Authenticate and publish the checked archive
|
|
39
|
+
|
|
40
|
+
Authenticate directly with npm; do not paste credentials or tokens into chat:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
npm login --registry https://registry.npmjs.org/
|
|
44
|
+
npm whoami --registry https://registry.npmjs.org/
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Publish the exact inspected archive after tests pass:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
npm publish ./dist/agentic-learning-framework-0.1.0.tgz --access public --registry https://registry.npmjs.org/
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Complete any npm-required verification through its normal login/publish flow.
|
|
54
|
+
If authentication, name ownership, policy or network access fails, report the
|
|
55
|
+
actual failure and keep the checked archive; do not claim publication succeeded.
|
|
56
|
+
The user has requested this release; no additional product approval flow is
|
|
57
|
+
introduced here.
|
|
58
|
+
|
|
59
|
+
## Verify publication
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
npm view agentic-learning-framework@0.1.0 name version dist.integrity --json
|
|
63
|
+
npx --yes agentic-learning-framework@0.1.0 --version
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Compare registry integrity to the checked archive, then test a registry-backed
|
|
67
|
+
`init`/`doctor` in a fresh disposable project. Only after that verification
|
|
68
|
+
describe the release as published. Existing versions cannot be overwritten;
|
|
69
|
+
later releases need a new version and a fresh pack/privacy/install check.
|
|
70
|
+
|
|
71
|
+
This checkout initially had no Git commits or remote, so no source-hosting URL,
|
|
72
|
+
GitHub release, CI provenance or automated publication is claimed. Those can be
|
|
73
|
+
configured separately once a real repository destination is selected.
|