-
Notifications
You must be signed in to change notification settings - Fork 0
Add legal skill factory meta-skill and base legal skills framework #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: xtrader1020 <[email protected]>
Co-authored-by: xtrader1020 <[email protected]>
…or handling Co-authored-by: xtrader1020 <[email protected]>
|
@copilot Start 'github-mcp-server' MCP server Bash: Find markdown files to understand documentation structure Bash: Find test files View skills/.curated/notion-knowledge-capture Bash: Check git status Progress update: Initial plan for legal skill factory implementation Bash: Create legal-skill-factory directory structure Bash: Copy Apache 2.0 license Create skills/.system/legal-skill-factory/SKILL.md Create skills/.system/legal-skill-factory/scripts/detect_capability.py Create skills/.system/legal-skill-factory/scripts/skill_registry.py Bash: Make scripts executable Bash: Test detect_capability.py Bash: Create contract-review directories Bash: Create nda-generator directories Create skills/.curated/legal/nda-generator/assets/templates/mutual-nda-template.md Create skills/.curated/legal/nda-generator/references/nda-standard-terms.md Bash: Create compliance-checker directories Create skills/.curated/legal/compliance-checker/SKILL.md Progress update: Add legal-skill-factory meta-skill and base legal skills structure Create skills/.curated/legal/compliance-checker/scripts/compliance_check.py Create skills/.curated/legal/compliance-checker/references/gdpr-checklist.md Create skills/.curated/legal/compliance-checker/references/ccpa-checklist.md Create skills/.curated/legal/compliance-checker/references/hipaa-checklist.md Bash: Test detect_capability with GDPR query Bash: Test compliance checker Bash: Test contract extraction Progress update: Complete compliance-checker skill with scripts and reference checklists Bash: Verify legal-skill-factory structure Bash: Check script permissions Bash: Test capability detection for NDA Bash: Register more skills and test find Bash: Check recent commits Bash: Display implementation summary Bash: Display tree structure Bash: Test JSON output format Review changes with Copilot code review View skills/.system/legal-skill-factory/scripts/detect_capability.py:220-230 Bash: Test detect_capability and skill_registry after changes View skills/.system/legal-skill-factory/scripts/skill_registry.py:1-35 Bash: Test skill_registry after fix Progress update: Address code review feedback: make paths configurable and improve error handling Bash: Run comprehensive integration test Bash: Display final summary Bash: Final git status Summary 🎯 Implementation Overview
✅ Legal teams can ask for any legal task naturally Made file paths configurable via environment variables |
|
@copilot /home/riveracarmeloiii/elasticsearch-project/legal-skill-factory/scripts/detect_capability.py |
|
@copilot /home/riveracarmeloiii/elasticsearch-project/legal-skill-factory/scripts/detect_capability.py |
|
@copilot retry |
|
@copilot # Legal Skill Factory A meta-skill that detects missing legal capabilities and creates new legal skills on-demand. OverviewThe Legal Skill Factory is a system skill that enables self-service creation of legal skills. When a user requests a legal task that doesn't have an existing skill, the factory detects the capability gap and automatically scaffolds a new skill with proper structure, documentation, and scripts. Capabilities
UsageBasic Usage |
|
@copilot retry' |
The legal skill factory implementation is complete and all changes have been successfully pushed. Could you clarify what you'd like me to retry? If there's a specific issue or test failure, please let me know and I'll address it. |
Implements a self-service legal skills system that automatically detects missing legal capabilities and creates new skills on-demand. Enables legal teams to request any legal task naturally without manually creating skills for each use case.
Legal Skill Factory (Meta-Skill)
Location:
skills/.system/legal-skill-factory/~/.codex/legal-skill-registry.jsonwith usage trackingLEGAL_SKILLS_PATHandLEGAL_SKILLS_REGISTRYenvironment variablesNaming convention:
legal-[action]-[subject]-[jurisdiction]Example usage:
Base Legal Skills
1. Contract Review (
skills/.curated/legal/contract-review/)2. NDA Generator (
skills/.curated/legal/nda-generator/)Four production-ready templates with jurisdiction-specific terms:
Reference guide covers US (state-specific variations), EU (GDPR), UK (reasonableness test), and Canada.
3. Compliance Checker (
skills/.curated/legal/compliance-checker/)Automated pattern-based compliance verification:
Outputs compliance score, gap analysis, and prioritized remediation plan.
Example:
Implementation Details
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Summary by cubic
Adds a legal skill factory and a curated set of base legal skills so legal tasks can be requested in plain language, auto-detected, and handled by generated or existing skills. Standard naming, registry, and integration make skills discoverable and reusable.
New Features
Integration
Written for commit ca5f303. Summary will update automatically on new commits.