cd

Change the current working directory to a specified path in POSIX-compliant shells.

1|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/corygabrielsen/skills --skill cd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cd
Source: https://github.com/corygabrielsen/skills/tree/main/cd
Command: npx skills add https://github.com/corygabrielsen/skills --skill cd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Change the current working directory to a specified path to access files and run commands in the desired context.

Core Features & Use Cases

  • Change to a target directory using a concise shell command.
  • Navigate project trees, manage scripts, and run commands in the correct context.
  • Use Case: Switching into a project folder to execute build or test commands.

Quick Start

Use the command: cd /path/to/project to switch to the project directory.

Frequently Asked Questions about cd

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

FAQPage Schema
How do I change the current working directory in a UNIX-like shell?

To change the current working directory in a UNIX-like shell, use the cd command followed by your target path. This switches your active context, allowing you to access files and execute commands directly within that specified directory.

Can I switch into a project folder to run build commands using a single shell command?

Yes, you can switch into a project folder to run build commands by using cd /path/to/project. This navigates the project tree and sets the correct context for executing your automation scripts and build operations.

Does the cd command require a POSIX-compliant shell to navigate directories?

Yes, navigating directories with the cd command requires a POSIX-compliant shell and standard filesystem access. It is designed to function across UNIX-like environments for both interactive shells and automation scripts.

What is the best way to manage scripts in the correct context when navigating project trees?

The best way to manage scripts in the correct context is changing the current working directory with cd before execution. This ensures your automation scripts run in the desired target path and access the correct files.

Why does my shell command fail to access files after switching directories?

If your shell command fails to access files after switching directories, verify the specified path is valid and you have standard filesystem access. The cd command requires a correct path to successfully change the working directory.

When do I need to change directories instead of using absolute paths in automation scripts?

You need to change directories instead of using absolute paths when automation scripts rely on relative paths to access files. Switching the working directory with cd establishes the necessary context for these commands to execute correctly.

Related Skills