file-lock

Acquire and release advisory per-file locks to prevent concurrent write conflicts.

1|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/softwaresalt/csv-managed --skill file-lock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-lock
Source: https://github.com/softwaresalt/csv-managed/tree/main/.github/skills/file-lock
Command: npx skills add https://github.com/softwaresalt/csv-managed --skill file-lock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents conflicting concurrent modifications by coordinating safe per-file access in multi-agent and human+agent workflows.

Core Features & Use Cases

  • Advisory per-file locks: Create and remove lock files alongside the target file to signal exclusive access.
  • Deterministic acquire/release protocol: Use an action input to either acquire or release the lock with clear success/failure behavior.
  • Concurrency guardrails: Instructs agents to follow the repository-defined concurrency protocol before modifying files.

Quick Start

Run the file-lock skill to acquire a lock for a specific file before editing it, then release the lock after modifications and verification.

Frequently Asked Questions about file-lock

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent concurrent write conflicts during a multi-agent workspace refactor?

You prevent concurrent write conflicts by acquiring advisory per-file locks for targeted paths before editing, ensuring exclusive access during multi-agent orchestration. The lock signals to other agents and humans that the file is currently being modified.

What is the best way to coordinate file access when a human and an AI agent edit the same workspace?

The best way to coordinate file access is using an advisory per-file lock that creates lock files alongside the target file. This deterministic acquire and release protocol safely signals exclusive access to both human and agent editors.

How does the acquire and release protocol for workspace file locks work?

The acquire and release protocol works by using an action input to either acquire or release the lock with deterministic success and failure behavior. It follows the repository concurrency protocol and provides clear exit-code behavior using scripts.

Do I need specific inputs to acquire a file lock for a specific path?

Yes, you need specific inputs to acquire a file lock: you must provide the target filepath and the action input to trigger the deterministic acquire or release behavior. The lock file is then created alongside the target file.

When do I need to release a file lock during long-running refactor coordination?

You need to release a file lock during long-running refactor coordination immediately after your modifications are complete and verified. This removes the advisory lock file and restores workspace access for other agents or human editors.

Can I use advisory file locking for scenarios outside of multi-agent orchestration?

Yes, you can use advisory file locking for any scenario requiring concurrency guardrails, including long-running refactors and workflows where a human may edit the same workspace files at the same time as an automated process.