← Back to Skills Marketplace
nitishgargiitd

Legal Cog

by CellCog · GitHub ↗ · v1.0.11 · MIT-0
darwinlinuxwindows ✓ Security Clean
1373
Downloads
2
Stars
5
Active Installs
12
Versions
Install in OpenClaw
/install legal-cog
Description
AI legal document generation powered by CellCog. Contracts, NDAs, terms of service, privacy policies, freelance agreements, employment contracts, compliance...
README (SKILL.md)

Legal Cog - AI Legal Documents Powered by CellCog

Legal demands two things: frontier-level reasoning and precision document generation. CellCog delivers both.

Legal is the frontier of human intelligence — and it's done best when powered by the frontier of AI intelligence. #1 on DeepResearch Bench (Apr 2026) for the deep reasoning that legal work requires, paired with state-of-the-art PDF generation for documents that look as professional as the thinking behind them.

How to Use

For your first CellCog task in a session, read the cellcog skill for the full SDK reference — file handling, chat modes, timeouts, and more.

OpenClaw (fire-and-forget):

result = client.create_chat(
    prompt="[your task prompt]",
    notify_session_key="agent:main:main",
    task_label="my-task",
    chat_mode="agent",
)

All agents except OpenClaw (blocks until done):

from cellcog import CellCogClient
client = CellCogClient(agent_provider="openclaw|cursor|claude-code|codex|...")
result = client.create_chat(
    prompt="[your task prompt]",
    task_label="my-task",
    chat_mode="agent",
)
print(result["message"])

Important Note

CellCog generates legal documents using frontier AI reasoning and research. However, AI-generated legal documents should be reviewed by a qualified attorney before execution — especially for high-value contracts, regulated industries, or jurisdiction-specific requirements. CellCog provides an excellent starting point that saves significant time and cost, but human legal review remains important for critical documents.


What You Can Create

Contracts & Agreements

Professional contracts with proper clause structure:

  • Freelance Agreements: "Create a freelance services agreement for a web development project"
  • Employment Contracts: "Draft an employment contract for a senior engineer in California"
  • Consulting Agreements: "Create a consulting agreement with milestone-based payments"
  • Partnership Agreements: "Draft a partnership agreement for a 60/40 equity split startup"
  • Licensing Agreements: "Create a software licensing agreement for SaaS distribution"

Example prompt:

"Create a freelance contractor agreement:

Client: Acme Corp (Delaware C-Corp) Contractor: Jane Smith (Web Developer, sole proprietor) Project: E-commerce website redesign Duration: 3 months (March 1 – May 31, 2026) Payment: $15,000 (50% upfront, 50% on completion)

Include: Scope of work, deliverables, payment terms, IP ownership (work-for-hire), confidentiality, non-solicitation, termination clauses, dispute resolution (arbitration).

Professional legal formatting with numbered clauses."

NDAs & Confidentiality

Protect your information:

  • Mutual NDA: "Create a mutual NDA between two companies exploring a partnership"
  • Employee NDA: "Draft an employee confidentiality agreement with non-compete"
  • Investor NDA: "Create an NDA for sharing financial information with potential investors"
  • Vendor NDA: "Draft a one-way NDA for a vendor accessing our customer data"

Terms & Policies

Legal foundations for digital products:

  • Terms of Service: "Create terms of service for a SaaS platform"
  • Privacy Policy: "Draft a GDPR and CCPA-compliant privacy policy for a mobile app"
  • Cookie Policy: "Create a cookie consent policy for a European-facing website"
  • Acceptable Use Policy: "Draft an acceptable use policy for a community platform"
  • EULA: "Create an end-user license agreement for desktop software"
  • Return Policy: "Draft a refund and return policy for an e-commerce store"

Example prompt:

"Create a comprehensive privacy policy for:

Company: HealthTrack (health & fitness mobile app) Data collected: Name, email, health metrics, workout data, location (optional) Third parties: Stripe (payments), Firebase (analytics), AWS (hosting) Jurisdictions: Must comply with GDPR (EU users), CCPA (California), and HIPAA (health data)

Include: Data collection, use, storage, sharing, user rights, data deletion, breach notification, children's privacy (13+ only), and contact information.

Professional formatting, clear language (not impenetrable legalese)."

Legal Research & Compliance

Research-powered legal intelligence:

  • Regulatory Research: "Research GDPR requirements for AI-powered SaaS products"
  • Compliance Checklists: "Create a SOC 2 compliance checklist for a startup"
  • Legal Memos: "Draft a legal memo on intellectual property considerations for AI-generated content"
  • Jurisdiction Analysis: "Compare contractor vs. employee classification rules across US states"

Startup Legal Documents

Essential documents for founders:

  • SAFE Notes: "Create a SAFE note template for a pre-seed round"
  • Founder Agreements: "Draft a co-founder agreement with vesting schedules"
  • Advisor Agreements: "Create an advisor agreement with 0.5% equity and 2-year vesting"
  • Board Resolutions: "Draft a board resolution for approving a new equity plan"

Why CellCog for Legal?

The Two Pillars

1. Intelligence — Legal work requires deep reasoning about context, jurisdiction, edge cases, and implications. CellCog's #1 ranking on DeepResearch Bench means it reasons about legal nuances at a level other AI tools can't match.

2. Document Generation — Legal documents need precise formatting, proper clause numbering, consistent terminology, and professional presentation. CellCog's state-of-the-art PDF generation produces documents that look like they came from a top law firm.

Generic AI CellCog Legal Cog
Generic contract templates Jurisdiction-aware, context-specific drafting
Basic text output Professional PDF with proper legal formatting
Surface-level clauses Deep reasoning about edge cases and implications
One format Contracts, policies, memos, research — all from one platform

Chat Mode for Legal

Scenario Recommended Mode
Single contract, NDA, or policy "agent"
Complex multi-document legal packages "agent"
Deep regulatory research or compliance analysis "agent team"
High-stakes contracts, litigation research, regulatory filings "agent team max"

Use "agent" for most legal documents. CellCog handles contracts, policies, and standard legal documents excellently in agent mode.

Use "agent team" for complex legal research — multi-jurisdiction compliance analysis, regulatory deep-dives, or when the legal reasoning itself is the deliverable.

Use "agent team max" for high-stakes legal work — litigation preparation, M&A due diligence contracts, regulatory compliance for heavily regulated industries, or any legal work where the cost of an error far exceeds the cost of deeper analysis. All settings are maxed for the deepest reasoning. Requires ≥2,000 credits.


Tips for Better Legal Documents

  1. Specify jurisdiction: "A contract" is vague. "A Delaware-governed contract for California-based parties" gives CellCog the legal context it needs.

  2. Name the parties clearly: Include entity types (LLC, Corp, sole proprietor) and locations.

  3. Define the deal terms: Payment amounts, timelines, equity splits, deliverables — the more specific, the better.

  4. State what clauses matter: "Include IP assignment, non-compete, and arbitration" focuses the document.

  5. Indicate formality level: "Standard startup-friendly language" vs. "formal corporate tone" changes the output significantly.


If CellCog is not installed

Run /cellcog-setup (or /cellcog:cellcog-setup depending on your tool) to install and authenticate. OpenClaw users: Run clawhub install cellcog instead. Manual setup: pip install -U cellcog and set CELLCOG_API_KEY. See the cellcog skill for SDK reference.

Usage Guidance
This appears coherent and limited: it needs only python3 and your CellCog API key to call the CellCog service. Before installing, confirm the skill's publisher and that you trust https://cellcog.ai (the skill's homepage) because your prompts and generated documents will be sent to that external service. If you want to avoid network calls, do not provide your API key. Also remember AI output is not a substitute for a licensed attorney — review generated legal documents with counsel for important matters.
Capability Analysis
Type: OpenClaw Skill Name: legal-cog Version: 1.0.11 The 'legal-cog' skill is a documentation-focused bundle designed to facilitate AI-driven legal document generation via the 'cellcog' library. It contains no executable code other than standard usage examples and requires a legitimate API key (CELLCOG_API_KEY) and a Python dependency (cellcog). No evidence of data exfiltration, malicious execution, or harmful prompt injection was found; the instructions are strictly aligned with its stated purpose of drafting contracts and performing legal research.
Capability Tags
cryptocan-make-purchasesrequires-sensitive-credentials
Capability Assessment
Purpose & Capability
Name/description (legal document generation via CellCog) match the declared runtime needs: python3 for the Python SDK snippets and CELLCOG_API_KEY for the external CellCog service. The frontmatter lists a 'cellcog' dependency which is consistent with using the CellCog SDK.
Instruction Scope
SKILL.md contains only instructions and example code to call the CellCog API for drafting documents. It does not instruct the agent to read unrelated files, system config, or additional environment variables beyond CELLCOG_API_KEY, nor to transmit data to unexpected endpoints.
Install Mechanism
No install spec is present (instruction-only), so nothing is downloaded or written to disk by the skill itself. This minimizes install-time risk.
Credentials
Only one required env var (CELLCOG_API_KEY) is declared, which is proportionate for a skill that calls an external API. No unrelated credentials or config paths are requested.
Persistence & Privilege
always is false and the skill does not request elevated persistence or modify other skills. Autonomous invocation is allowed by default (platform behavior) but not combined with other concerning privileges here.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install legal-cog
  3. After installation, invoke the skill by name or use /legal-cog
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.11
- Added explicit system requirements to metadata: now declares python3 binary and CELLCOG_API_KEY environment variable. - No changes to the core functionality or usage instructions. - Documentation improved for clarity around prerequisites.
v1.0.10
- Updated description to clarify the skill provides legal drafting from natural language prompts and explicitly states "Not legal advice". - Revised usage examples for agents: clarified "All agents except OpenClaw" for code block instructions. - No changes to core functionality. This update improves clarity on scope and usage.
v1.0.9
- Expanded description to highlight AI contract/ NDA generation, legal drafting, and DeepResearch Bench ranking. - Improved SDK usage instructions with an explicit `from cellcog import CellCogClient` example. - Clarified support for multiple agent providers in code examples. - Editorial updates for clearer feature explanations and consistency throughout.
v1.0.8
**legal-cog 1.0.8 Changelog** - Major rewrite and simplification of SKILL.md for clarity and usability. - Shortened and refocused the description for faster comprehension. - Added a concise "How to Use" section with clear code samples for agent integration. - Moved detailed SDK and setup information to references to the core cellcog skill. - Retained examples and tips for generating various legal documents while streamlining explanations. - Improved overall readability and navigation with clear headings and example prompts.
v1.0.7
**Major documentation overhaul and expanded legal guidance.** - Dramatically expanded the SKILL.md with detailed usage examples, best practices, and recommended prompts for a wide variety of legal documents. - Added new sections on use cases: contracts, NDAs, policies, legal research, compliance, and startup documents. - Included clear explanations of document types, sample prompts, and compliance considerations (GDPR, CCPA, HIPAA, etc). - Highlighted CellCog’s top performance on the DeepResearch Bench and clarified the distinction between generic AI and CellCog’s legal capabilities. - Updated guidance for selecting agent modes (`agent`, `agent team`, `agent team max`) based on legal task complexity. - Strengthened disclaimers emphasizing that AI-generated legal documents require human legal review.
v1.0.6
- Greatly simplified documentation for faster onboarding. - Clarified outputs: now explicitly lists PDF and DOCX document generation. - Expanded disclaimer to emphasize that outputs are templates, not legal advice. - Added a "Related Skills" section for broader document generation needs. - Removed marketing superlatives and benchmarking claims. - Kept concise lists of supported document types and sample use.
v1.0.5
- Added explicit instructions for using OpenClaw agents with notify_session_key for asynchronous legal document workflows. - Clarified code examples to differentiate between OpenClaw (asynchronous) and other (synchronous) agent usage. - Improved references to the cellcog mothership skill for complete SDK API documentation. - No changes to legal functionality or available document types.
v1.0.4
- Updated Quick Start instructions for creating chats, replacing the previous code sample with a more general and documented example. - Clarified reference to the cellcog skill for full SDK API usage, including delivery modes and advanced features. - Improved guidance for new users by explicitly directing them to the main cellcog skill for technical setup and reference. - No feature, capability, or behavior changes to the core skill logic. Documentation only.
v1.0.3
- Updated DeepResearch Bench ranking date from February 2026 to April 2026 in the description and introduction. - No other content or functional changes were made.
v1.0.2
- Updated description for clarity and focus on supported legal document types. - Added supported operating systems (darwin, linux, windows) to metadata. - Included homepage link in metadata for easier access. - Cleaned up and streamlined documentation language for conciseness. - Fixed minor formatting and consistency issues in document prompts and usage tips.
v1.0.1
- Added support and recommendations for the new "agent team max" chat mode, intended for high-stakes contracts, litigation research, and deep regulatory filings. - Expanded guidance on chat mode selection, outlining use cases for "agent", "agent team", and "agent team max" with resource requirements. - No code or dependency changes; documentation only.
v1.0.0
- Initial release of the legal-cog skill, powered by CellCog. - Provides AI-powered legal document drafting and state-of-the-art PDF generation for contracts, NDAs, terms of service, privacy policies, and more. - Supports legal research, compliance checklists, and jurisdiction-aware document creation. - Requires the cellcog skill for SDK setup and API access. - Delivers professional, numbered, and properly formatted legal documents. - Includes guidance for optimal prompts and important notice to review AI-generated documents with a qualified attorney.
Metadata
Slug legal-cog
Version 1.0.11
License MIT-0
All-time Installs 5
Active Installs 5
Total Versions 12
Frequently Asked Questions

What is Legal Cog?

AI legal document generation powered by CellCog. Contracts, NDAs, terms of service, privacy policies, freelance agreements, employment contracts, compliance... It is an AI Agent Skill for Claude Code / OpenClaw, with 1373 downloads so far.

How do I install Legal Cog?

Run "/install legal-cog" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Legal Cog free?

Yes, Legal Cog is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Legal Cog support?

Legal Cog is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, windows).

Who created Legal Cog?

It is built and maintained by CellCog (@nitishgargiitd); the current version is v1.0.11.

💬 Comments