test-location-detection

Determine and validate test file paths from source file paths.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ai-sand-castles/local-marketplace --skill test-location-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-location-detection
Source: https://github.com/ai-sand-castles/local-marketplace/tree/main/test-automation-plugin/skills/test-location-detection
Command: npx skills add https://github.com/ai-sand-castles/local-marketplace --skill test-location-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that generated test files are written to discoverable, language-appropriate locations rather than temporary or invalid directories.

Core Features & Use Cases

  • Determines the correct test directory based on language conventions and project configuration.
  • Validates and suggests safe locations within the project, mirroring existing structures when possible.
  • Creates missing test directories as needed and returns a concrete, safe path for test file generation.

Quick Start

Provide the source file path and project context (project root, language, and framework) to receive a validated, ready-to-write test file path.

Frequently Asked Questions about test-location-detection

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

FAQPage Schema
How do I validate a test file path for a source file in my project?

To validate a test file path, provide the source file path and project context. The skill checks language conventions and project configuration to return a safe, validated path within project boundaries.

What is the best way to determine the correct test directory for different programming languages?

Determining the correct test directory is done by honoring language-specific conventions and project configuration. This approach mirrors existing directory structures to ensure tests are placed where they will be discovered.

Why does my generated test file path resolve to an invalid directory outside the project root?

A test file path might resolve outside the project root when directory mirroring is not constrained. The skill enforces project boundaries and avoids forbidden locations to return a safe, concrete path.

Can I use project configuration to ensure my test structure mirrors my source directory?

Yes, you can use project configuration to mirror source directory structures. The skill reads this configuration alongside language conventions to generate a matching, discoverable test file path.

When do I need to create missing test directories for generated test files?

You need to create missing test directories when the validated path does not yet exist. The skill handles this by creating required directories and returning a ready-to-write path for test generation.