Install
openclaw skills install hizal-writePersist what the agent learns as it builds. Self-triggering — fires whenever the agent makes a decision, discovers a pattern, learns a convention, hits a gotcha, or gains knowledge worth keeping. Use continuously, not just at the end. Triggers on phrases like "good to know", "I'll remember that", "worth noting", "that's a pattern", "lesson learned", "this is how we do it", or any moment the agent learns something it would otherwise forget.
openclaw skills install hizal-writeWrite as you build. Not optional.
| What you're writing | Tool | Scope |
|---|---|---|
| Personal observation or lesson learned | hizal__write_memory | AGENT |
| Architecture or design decision | hizal__write_knowledge | PROJECT |
| Convention this codebase follows | hizal__write_convention | PROJECT (auto-inject) |
| Agent identity or personality | hizal__write_identity | AGENT (auto-inject) |
| Org-wide knowledge | hizal__write_org_knowledge | ORG |
| Principle (requires human promotion) | hizal__store_principle | ORG |
| Custom chunk type | hizal__write_chunk | varies |
Do not use hizal__write_context — it's deprecated. Use the purpose-built tools above.
For chunk types not covered by the built-in tools, use hizal__write_chunk. Chunk types are customizable per org — always discover what's available before assuming a type doesn't exist.
hizal__list_chunks() # inspect chunk_type values in results
Or check the project's AGENTS.md for the org's type conventions.
hizal__write_chunk(
type="<chunk-type-slug>",
query_key="<unique-key>",
title="<short title>",
content="<full content>",
scope="PROJECT", # or AGENT, ORG
project_id="<id>", # required for PROJECT scope
org_id="<id>", # required for ORG scope
agent_id="<id>" # required for AGENT scope
)
write_chunk accepts the same common fields as all other write tools (query_key, title, content, gotchas, related, source_file, inject_audience, etc.). It also accepts custom_fields for type-specific metadata.
Don't batch everything into one chunk at the end. Write as you go:
write_knowledge nowwrite_convention nowwrite_memory nowwrite_chunk nowAll write tools accept:
hizal__write_knowledge(
project_id="<id>",
query_key="nuvei-webhook-signing",
title="DMN Webhook Signature Verification",
content="All DMN payloads are verified using SHA-256 HMAC. The checksum is computed from sorted key-value pairs + merchant secret. See package internal/checksum for implementation.",
related=["nuvei-payload-structure", "merchant-credentials"],
gotchas=["Never use /payment for credential verification"]
)
If a personal memory chunk is broadly useful for the team, promote it:
hizal__read_contextwrite_knowledge or write_convention with the contenthizal__delete_context