Agent skill
log
Logging skill for the ikigai project
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/log
SKILL.md
Logging
Critical: Alternate Buffer Mode
ikigai runs in terminal alternate buffer mode. stdout/stderr are not visible during execution. Do not use printf() or fprintf(stderr, ...) for debugging.
Use the logger instead - it writes to a file you can inspect.
Usage
#include "logger.h"
// Legacy printf-style (being deprecated)
ik_log_debug("value=%d", x);
ik_log_info("started processing");
ik_log_warn("unexpected state");
ik_log_error("operation failed: %s", reason);
// New JSONL API (preferred)
yyjson_mut_doc *doc = ik_log_create();
yyjson_mut_val *root = yyjson_mut_doc_get_root(doc);
yyjson_mut_obj_add_str(doc, root, "event", "chunk_received");
yyjson_mut_obj_add_int(doc, root, "bytes", len);
ik_log_debug_json(doc); // Takes ownership, frees doc
Inspecting Logs
# Tail logs during development
tail -f $PWD/.ikigai/logs/current/log
Levels
debug- Development tracinginfo- Normal operationswarn- Recoverable issueserror- Failuresfatal- Callsexit(1)after logging
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?