Automatically complete partial code snippets while satisfying semantic constraints including variable types, invariants, pre/post-conditions, interface contracts, and expected input/output behavior. Use when users provide incomplete code with specific requirements like "complete this function that takes a list and returns sorted unique elements" or "fill in this method body that must maintain the invariant that x stays positive" or "implement this interface method with these type constraints." Produces compilable, executable code with tests and a constraint satisfaction report.
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill code-completion-semantic-constraints
Complete partial code snippets while satisfying specified semantic constraints. Produces compilable code, verification tests, and a detailed report explaining how each constraint was satisfied.
Extract and categorize the provided information:
Partial Code: Identify the incomplete code structure (function signature, class skeleton, method stub, etc.)
Semantic Constraints: Categorize constraints by type:
For each constraint:
Generate code that:
Create minimal test cases that verify:
Document how each constraint was satisfied:
Input:
def process_items(items):
# TODO: complete this function
pass
Constraints:
items is a list of integersOutput: Completed function with sorting logic, tests for empty/normal/duplicate cases, and report explaining constraint satisfaction.
Input:
public class DataCache implements Cache {
// TODO: implement required methods
}
Constraints:
Cache interface (get, put, remove methods)Output: Complete class implementation, concurrency tests, and report mapping each interface method to implementation.
Input:
void update_balance(Account* acc, int amount) {
// TODO: complete
}
Constraints:
acc != NULL && acc->balance >= 0acc->balance >= 0 (balance never negative)amount would make balance negative, set to 0 insteadOutput: Implementation with bounds checking, tests for edge cases, and report showing invariant preservation.
Provide three components:
1. Completed Code
2. Verification Tests
3. Constraint Satisfaction Report
This skill works with any programming language. Adapt constraint types and verification approaches to language-specific features (e.g., type systems, contract programming, assertion libraries).
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take arabelatso/code-completion-semantic-constraints from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.