Sap learn from system
Skill StormShynn/sap-abap-agent/skills/sap-learn-from-system
Hoc tu he thong SAP dang ket noi (MCP): doc table/class/CDS that, rut lesson card local (Hermes-like), roi dong bo pattern da scrub len Notion "SAP Skills" (opt-out private / fail-open). Dung khi "hoc tu he thong", kham pha Z* object. KHONG dung thay tip/quiz (sap-daily-learner) hay scaffold (sap-scaffold-*).From its SKILL.md
npx -y skills add StormShynn/sap-abap-agent --skill sap-learn-from-systemAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.8 KB, as published. Nobody here has run it
SAP Learn From System — Hoc tu MCP SAP that + share Notion (scrub)
Muc tieu
Khi user da MCP vao SAP, skill nay:
- Xac nhan ket noi (ping).
- Chon 1–5 object that (table / class / CDS / domain…).
- Doc source/structure qua MCP — khong doan.
- Viet lesson card vao
<agent-home>/memory/(scrub: khong paste bulk source noi bo). - Doc Notion truoc (tranh trung) → ghi Notion page pattern (DB "SAP Skills") neu khong private.
- In checklist ket thuc.
Lay cam hung Hermes + sap-daily-learner muc 3b — khong can Hermes Agent / hermes mcp serve.
Khi nao dung
- ✅ User muon hoc / ghi nhan pattern tu he thong dang ping.
- ✅ Sau
mcp-sap-connect connect/ MCP Core san sang. - ❌ Chi muon tip/quiz hang ngay →
sap-daily-learner. - ❌ Muon scaffold code →
sap-scaffold-*/sap-bootstrap-system-context. - ❌ Chua co MCP SAP → dung, huong dan
#cai-dat/#ket-noi/ GUI MCP Core.
Pham vi ghi (BAT BUOC)
Giong sap-daily-learner:
- Chi
Write/Editduoi<agent-home>(agent_home.py/SAP_ABAP_AGENT_HOME). - Duong dan hop le:
memory/semantic/lessons/,memory/semantic/notes/,memory/episodic/. - KHONG ghi source ABAP day du cua khach vao file hay Notion; chi tom tat pattern (ten object, 3–7 bullet).
- KHONG promote
reference/modules/(dungsap-daily-learnermuc 3c neu can).
Bootstrap neu can:
python "${CLAUDE_PLUGIN_ROOT}/reference/scripts/bootstrap_memory.py" \
--ensure-dir memory/semantic/lessons/system \
--ensure-dir memory/semantic/notes/system
Scrub rules (local + Notion)
Cam trong lesson / page Notion:
- Toan bo method/source class, SELECT * ket qua, so lieu nghiep vu, user/password/token
- Ten khach hang / tenant id / URL day du neu user yeu cau an (mac dinh: chi hostname profile, khong secret)
- Doan code > ~5 dong — thay bang mo ta "pattern: ... (xem object tren he thong)"
Duoc: ten object, loai, package, 3–7 bullet pattern, module goi y, link ten CDS released (neu public).
Quy trinh
Buoc 0 — Gate ket noi
- Goi MCP
sap_ping(hoac CLImcp-sap-connect ping) tren profile active / user chi dinh. - Fail → dung. Bao user chay
mcp-sap-connect connect/reauth, khong bia lesson. - (Tuy chon)
sap_get_system_info— ghi edition/profile vao phan meta lesson.
Buoc 1 — Chon doi tuong hoc (toi da 5 / session)
Uu tien:
- Object user chi ro.
- Package user chi / package Z* (
sap_list_packages/sap_search). - Mau Z*/Y*: TABLE, CLAS, DDLS/CDS — 2–5 object khac loai neu co the.
Checklist chon (in truoc khi doc nhieu):
- Da ping OK
- Co ten object / package muc tieu
- Gioi han ≤ 5 object
- User dong y doc object do (neu package lon / nhay cam)
Buoc 2 — Doc that qua MCP
| Loai | Tool goi y |
|---|---|
| Class / include | sap_read_source |
| Tim theo ten | sap_search |
| Package | sap_list_packages |
| CDS released | CDS KB search_cds / get_cds_view |
Doc dung muc can — khong dump class lon.
Buoc 3 — Lesson card local (scrub)
# Lesson — <OBJECT> (<TYPE>)
- Profile host (khong secret): ...
- Ngay: YYYY-MM-DD
- Package: ...
## Pattern rut ra
- ...
## Tai sao quan trong (1-3 cau)
- ...
## Lien quan
- Module goi y: SD/FI/... (neu co)
## Share
- Notion: pending | shared | skipped-private | skipped-error
Ghi:
memory/semantic/notes/system/<object-lower>.md- Append
memory/semantic/lessons/system/<MODULE-or-GENERAL>.jsonl - Cap nhat nhe
LEARNING_PROGRESS.mdneu topic moi (1 dong)
Buoc 4 — Notion: doc truoc + ghi sau (SAP Skills)
Tai dung DB + resolve id giong sap-daily-learner muc 3b:
python "${CLAUDE_PLUGIN_ROOT}/reference/scripts/notion_skills_db.py" get
# --source → env|pin|default
Default shared: StormShynn 9d54b58613ad485f8b8f19909adbb219. Override: env
SAP_ABAP_AGENT_NOTION_SKILLS_DB hoac notion_skills_db.py set ….
CAM notion-create-database im lang. CAM search DB theo ten.
Properties (cung schema "SAP Skills"):
| Property | Gia tri goi y |
|---|---|
Topic (title) | [System] <OBJECT> — <pattern ngan> |
Module (select) | SD/FI/…/GENERAL neu khong ro |
Created (date) | hom nay |
Source question (text) | Learn from system: <OBJECT> (<TYPE>) @ <package> |
Tags | Bo qua neu option chua co trong schema (gotcha Notion) |
Noi dung page = ban scrub cua lesson (chi Pattern + Tai sao + Lien quan). Khong dinh kem source.
4a. Doc truoc (tranh trung)
- Search MCP
notionvoidata_source_url: "collection://<id>"+ tu khoa OBJECT / topic. - Chi
notion-fetchpage khop that — neu da co lesson tuong duong → dung lai, bao user, ghi localsource: "Dong bo tu Notion"neu chua co file, KHONG tao page trung.
4b. Kiem tra rieng tu (truoc khi ghi)
Bo qua Notion neu:
- Lesson / user co
<private>…</private>, hoac - User noi: "dung dong bo", "giu local", "rieng tu", "khong chia se"
Bao: "🔒 Lesson chi luu local — khong dong bo Notion."
4c. Ghi sau (mac dinh khi khong private)
notion_skills_db.py get→notion-fetchlay data source.notion-create-pages(ten tool theo session; xem danh sach tool servernotion) voi properties + body scrub.- Cap nhat lesson local:
Share: shared+ 1 dong "☁️ Da dong bo Notion (SAP Skills)". - Tu dong, khong hoi (giong daily-learner 3b) — tru khi private.
4d. Fail-open
Moi loi Notion (chua /mcp, OAuth, mang…) → khong chan luong local. Mot dong:
"Notion chua ket noi / loi — chi luu local." Cap nhat Share: skipped-error.
Ten tool: dung dung tool dang thay (notion-search / notion-fetch / notion-create-pages…) —
khong doan ten.
Buoc 5 — Checklist ket thuc
In skills/sap-learn-from-system/CHECKLIST.md (tom tat + trang thai Share).
Lien ket
sap-daily-learner— tip, quiz, auto-skill, promote 3c, curatorsap-bootstrap-system-context— do quy uoc truoc scaffoldreference/scripts/notion_skills_db.py— resolve DB id- MCP Core:
mcp-sap-connect, dict-bridge, cds-kb, mcp-sap-docs-btp + MCPnotion