arkiv-entity-lifecycle
Create, patch, transfer, replace, or delete Arkiv entities with @arkiv-network/sdk.
Skill by Arkiv-Network
Chalk Labs
Need help deploying arkiv-entity-lifecycle?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/arkiv-network-arkiv-entity-lifecycle
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Nov 1, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/arkiv-entity-lifecycle
What's inside
- Skill name
arkiv-entity-lifecycle- Description
- Create, patch, transfer, replace, or delete Arkiv entities with @arkiv-network/sdk. Use for readonly and permissionlessExtension flags, mutation permissions, ownership versus creator provenance, patch budgets, native batch order, and restoring entity references. Use arkiv-first-write for setup or a first entity, arkiv-entity-expiration for deadlines and arkiv-write-safety for ambiguous submissions.
- License
- MIT
- Metadata
- network: tiramisu · verified: 2026-10-08 · arkiv-sdk: >=0.8.1 <0.9
- Instructions
- 228 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- backup-restore.md · references/
SKILL.md (first lines)
# Arkiv entity lifecycle
Use installed SDK 1.0.0 declarations and Rabdi. Native operations target `0x4400000000000000000000000000000000000044`; this does not enable arbitrary application contracts. Run mutations only within the user's entity, signer and spending authorization. Read access does not authorize deletion.
## Flags and permissions
| readonly | permissionlessExtension | Patch | Extend | Transfer | Delete |
| --- | --- | --- | --- | --- | --- |
| false | false | Owner | Owner | Owner | Owner |
| false | true | Owner | Anyone | Owner | Owner |
| true | false | Nobody | Owner | Owner | Owner |
| true | true | Nobody | Anyone | Owner | Owner |
Both flags default false and are immutable. They apply to live entities. Readonly protects attributes, including bytes columns; owner operations can still affect availability. Permissionless extension grants no patch, transfer or deletion right, and can postpone an owner's preferred expiration.
`$owner` is current authority; `$creator` is the creating wallet. A transfer needs no recipient consent. Creator plus current owner cannot authenticate mutable values after a transfer away/edit/transfer back. Follow the [publication policy](../arkiv-security-trust/SKILL.md#trust-a-publication-not-a-namespace).
## Exact write signatures
```typescript
import { createWalletClient, createPublicClient, ExpirationTime, type Expiry, type TxParams } from '@arkiv-network/sdk';
import { defineSchema, str, bytes, u64 } from '@arkiv-network/sdk/schema';
import { isAddressEqual, zeroAddress, type Address, type Hex } from 'viem';
import { getGasPrice } from 'viem/actions';
// Diagnostics contain only fixed messages and validated local transaction identifiers.
type SafeDetails = { txHash?: string; entityKey?: string; expiresAt?: bigint };
const safeErrors = new WeakMap<object, { message: string; details: SafeDetails }>();
function safeError(message = 'Arkiv operation failed', details: SafeDetails = {}): Error & SafeDetails {
const allowed: SafeDetails = {};
for (const field of ['txHash', 'entityKey'] as const) {
const value = details[field];
if (typeof value === 'string' && /^0x[0-9a-fA-F]{64}$/.test(value)) allowed[field] = value;
}
if (typeof details.expiresAt === 'bigint' && details.expiresAt >= 0n && details.expiresAt < 2n ** 64n) allowed.expiresAt = details.expiresAt;
const result = Object.assign(new Error(message), allowed);
safeErrors.set(result, { message, details: { ...allowed } });
return result;
}
function sanitizedFailure(error: unknown, fallback = 'Arkiv request failed; reconcile any admitted write before retrying'): Error & SafeDetails {
const own = error !== null && typeof error === 'object' ? safeErrors.get(error) : undefined;
if (own) return safeError(own.message, own.details);
// Preserve this exact cross-recipe preflight verdict, never any attached diagnostics.
try { if (error instanceof Error && error.message === 'Unsigned preparation/estimate failed') return safeError('Unsigned preparation/estimate failed'); } catch {}
return safeError(fallback);
}
export const Notes = defineSchema('example_notes', {
status: str().indexed(), created_at: u64(), body: bytes(),
draft_reason: str().optional(),
});
type Wallet = ReturnType<typeof createWalletClient>;
type Reader = ReturnType<typeof createPublicClient>;
type EstimateLatest = (prepare: (unsigned: Wallet) => Promise<unknown>) => Promise<bigint>;
async function txParams(reader: Reader, wallet: Wallet, estimate: bigint): Promise<TxParams> {
const gas = 2n * estimate > 1000000n ? 2n * estimate : 1000000n;
const block = await reader.getBlock({ blockTag: 'latest' });
if (typeof block.gasLimit !== 'bigint' || block.gasLimit <= 0n) throw safeError('Latest block gas limit required');
if (gas > block.gasLimit / 2n) throw safeError('Gas exceeds half the latest block limit; split unprepared work');
if (estimate <= 0n || !wallet.account) throw safeError('Authorized account and Rabdi gas floor required');
const address = wallet.account.address;
const latest = await reader.getTransactionCount({ address, blockTag: 'latest' });
if (await reader.getTransactionCount({ address, blockTag: 'pending' }) !== latest) throw safeError('Resolve pending nonce');
return { nonce: latest, gas, gasPrice: await getGasPrice(reader) };
}
async function checked<T extends { txHash: Hex }>(reader: Reader, result: T): Promise<T> {
const receipt = await reader.getTransactionReceipt({ hash: result.txHash });
if (receipt.status !== 'success') throw safeError('Receipt disagrees after SDK success; reconcile without resending', { txHash: result.txHash });
return result;
}
export async function publish(reader: Reader, wallet: Wallet, expiration: Expiry, salt: bigint, estimateLatest: EstimateLatest) {
try {
const values = { status: 'published', created_at: u64(Date.now()), body: new TextEncoder().encode('Public example') };
const options = { expiration, salt, flags: { readonly: true } };
const estimate = await estimateLatest(unsigned => unsigned.createEntity(Notes, values, options));
return await checked(reader, await wallet.createEntity(Notes, values, options, await txParams(reader, wallet, estimate)));
} catch (error) {
throw sanitizedFailure(error);
}
}
export async function patchDraft(reader: Reader, wallet: Wallet, entityKey: Hex, estimateLatest: EstimateLatest) {
try {
const estimate = await estimateLatest(unsigned => unsigned.patchEntity(Notes, entityKey, { set: { status: 'published' }, unset: ['draft_reason'] }));
return await checked(reader, await wallet.patchEntity(Notes, entityKey, { set: { status: 'published' }, unset: ['draft_reason'] }, await txParams(reader, wallet, estimate)));
} catch (error) {
throw sanitizedFailure(error);
}
}
export async function transferAndInspect(reader: Reader, wallet: Wallet, entityKey: Hex, newOwner: Address, estimateLatest: EstimateLatest) {
try {
const before = await reader.getEntity(entityKey, Notes);
if (isAddressEqual(newOwner, zeroAddress) || isAddressEqual(newOwner, before.$owner)) throw safeError('Choose another nonzero owner');
const estimate = await estimateLatest(unsigned => unsigned.changeOwnership({ entityKey, newOwner }));
const transferred = await checked(reader, await wallet.changeOwnership({ entityKey, newOwner }, await txParams(reader, wallet, estimate)));
try {
const after = await reader.getEntity(entityKey, Notes);
return await { ...transferred, ownerAtRead: after.$owner,
creatorUnchanged: isAddressEqual(before.$creator, after.$creator) };
} catch { return await { ...transferred, status: 'confirmed_read_failed' as const }; }
} catch (error) {
throw sanitizedFailure(error);
}
}
export async function extend(reader: Reader, wallet: Wallet, entityKey: Hex, deadline: bigint, estimateLatest: EstimateLatest) {
try {
const operation = { entityKey, expiration: ExpirationTime.atBlock(deadline) };
const estimate = await estimateLatest(unsigned => unsigned.extendEntity(operation));
return await checked(reader, await wallet.extendEntity(operation, await txParams(reader, wallet, estimate)));
} catch (error) {
throw sanitizedFailure(error);
}
}
// Only invoke when deletion of this exact entity is independently authorized.
export async function remove(reader: Reader, wallet: Wallet, entityKey: Hex, estimateLatest: EstimateLatest) {
try {
const estimate = await estimateLatest(unsigned => unsigned.deleteEntity({ entityKey }));
return await checked(reader, await wallet.deleteEntity({ entityKey }, await txParams(reader, wallet, estimate)));From Arkiv-Network/skills, MIT.
More from Arkiv-Network/skills
- 0.592score
arkiv-write-safety
Arkiv-Network
Submit and reconcile Arkiv writes with @arkiv-network/sdk.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-app-integration
Arkiv-Network
Integrate Arkiv SDK 0.8.x into server APIs, injected-wallet apps and event-driven caches.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-social-graph
Arkiv-Network
Model follows, likes and entity references with arkiv-graph.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-troubleshooting
Arkiv-Network
Diagnose Arkiv SDK, query, RPC, wallet and stale-read failures and validate RPC/chain configuration from concrete request evidence.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv
Arkiv-Network
Route development tasks involving Arkiv, @arkiv-network/sdk, DB-Chain or Tiramisu to the appropriate skill and explain native entity operations, query…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-data-modeling
Arkiv-Network
Design typed Arkiv entity models for application queries, PostgreSQL mappings, marketplace schemas and relationships.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-encryption
Arkiv-Network
Encrypt and decrypt Arkiv entity payloads with the published arkiv-encryption package.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-feedback
Arkiv-Network
Draft and submit an Arkiv bug report or feature request using the official GitHub issue forms.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-first-write
Arkiv-Network
Set up @arkiv-network/sdk on a verified Arkiv testnet and make a first entity write with funding, safe key custody, explicit expiration, seed reconciliation…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-indexing
Arkiv-Network
Design and verify Arkiv-to-application entity mirrors from native operation logs, with checkpoints, replay, reorganization recovery and Entity Expiration…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-mcp
Arkiv-Network
Explain an already connected Arkiv MCP or plugin, including whether its bundled connection contains Global Tour Stop event sources and whether another…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-query
Arkiv-Network
Read Arkiv entities with the SDK select builder or raw arkiv_query JSON-RPC.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 9
- Last commit (this folder)
- Oct 12, 2026 (20 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Arkiv-Network/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Arkiv-Network
- 0.592score
arkiv-app-integration
Arkiv-Network
Integrate Arkiv SDK 0.8.x into server APIs, injected-wallet apps and event-driven caches.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-feedback
Arkiv-Network
Draft and submit an Arkiv bug report or feature request using the official GitHub issue forms.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-data-modeling
Arkiv-Network
Design typed Arkiv entity models for application queries, PostgreSQL mappings, marketplace schemas and relationships.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-encryption
Arkiv-Network
Encrypt and decrypt Arkiv entity payloads with the published arkiv-encryption package.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv
Arkiv-Network
Route development tasks involving Arkiv, @arkiv-network/sdk, DB-Chain or Tiramisu to the appropriate skill and explain native entity operations, query…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
arkiv-first-write
Arkiv-Network
Set up @arkiv-network/sdk on a verified Arkiv testnet and make a first entity write with funding, safe key custody, explicit expiration, seed reconciliation…
SkillAFreshness: A★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get arkiv-entity-lifecycle running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
arkiv-entity-lifecycle skill. Agent Mart. https://agentmart.dev/skills/arkiv-network-arkiv-entity-lifecycle (last updated 2026-10-24)