cyberneticlibrary

Manage contract review library

librarycommandsetup L135
kipeum86/contract-review-agent
What it does

Manage contract review artifact library (list, search, deprecate, archive)

Best for

Centralized contract clause and document management with full lifecycle (approval → deprecation → archive) and semantic search across large clause libraries.

Inputs
  • · Command: list/show/search/deprecate/archive/supersede/refresh
  • · Optional doc_id, query, category filters
Outputs
  • · Summary table (list command)
  • · Full asset details (show command)
  • · Filtered results (search command)
  • · Status updates (deprecate/archive/supersede/refresh)
Requires
  • · File system (read documents.json, clauses.json)
  • · LLM for semantic search
Preconditions
  • · contract-review/library/ directory exists
  • · documents.json and clauses.json indexes exist
Failure modes
  • · Index corruption → rebuild-index command recovers
  • · doc_id not found → search returns empty
  • · Supersession chain broken → manual ref update needed
Trust signals
  • · Separate indexes for documents (by metadata) and clauses (by type)
  • · Supports full supersession chain tracking
  • · Index rebuild command for recovery from corruption
  • · Status tracking: active/deprecated/archived