Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro IDE does not follow symlinks in ~/.kiro/skills/ — symlinked skills not available to agent

Open aliulashayir opened this issue 8 months ago • 26 comments

Before opening, please confirm:

Operating System

macOS 15.6.1

Kiro Version

0.10.78

Bug Description

Kiro IDE does not resolve symbolic links in the ~/.kiro/skills/ directory. Skills installed as symlinks (pointing to ~/.agents/skills/) are not recognized by the agent and cannot be activated, while skills in real directories at the same path work fine.

Steps to Reproduce

1.Install skills via the open agent skills ecosystem (e.g., impeccable.style / npx skills add) 2.This creates skill folders in ~/.agents/skills/ and symlinks them into ~/.kiro/skills/ 3.Open Kiro IDE and check available skills 4.Then when you try to import the skill from the ~/.agents/skills/ folder it prompts you saying the skill is avaible would you like to overwrite it 5.Only when you overwrite it shows up

Expected Behavior

All skills in ~/.kiro/skills/ should be available to the agent, regardless of whether the folder is a real directory or a symlink.

Conversation ID

No response

Additional Context

Only skills in real directories are available. Symlinked skill folders are silently ignored. you have to manually copy the skills to the .kiro/skills folder. cp -r ~/.agents/skills/clarify ~/.kiro/skills/clarify

aliulashayir avatar Mar 13 '26 09:03 aliulashayir

🤖 Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • ⏰ This issue will be automatically closed in 3 days
  • 🏷️ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with 👎 to this message.
  • 💬 Comment on the original issue if you have additional information

Why is this marked as duplicate? Both issues relate to skills not being properly recognized or loaded by Kiro - the new issue describes symlinked skills not being available, while #5867 describes skills not auto-loading based on triggers. Both involve skills being present but not accessible to the agent.

github-actions[bot] avatar Mar 13 '26 09:03 github-actions[bot]

This might be the root cause of the other skill loading based issues. Symlinks don't seem to be working corretly

aliulashayir avatar Mar 13 '26 10:03 aliulashayir

Thank you for your feedback! 🙏

The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar Mar 13 '26 10:03 github-actions[bot]

I'm facing the same issue. version: 0.11.63 windows 11

cgy859854649 avatar Mar 19 '26 08:03 cgy859854649

As a workaround you can tell kiro to use ls -L ~/.kiro/skills/<your skill> or ls ~/.kiro/skills/<your skill>/ with the trailing slash. I think it's just using a naive ls folder without the trailing slash, which just lists the symlink itself.

OneMHz avatar Mar 19 '26 16:03 OneMHz

Hey @aliulashayir, thanks for the clear report. And thanks to @cgy859854649 for confirming this on Windows — this tells us it's cross-platform, not macOS-specific. This is a valid bug — symlinked skill folders should be resolved transparently. Marking as a bug for the team to investigate further.

AnilMaktala avatar Mar 19 '26 19:03 AnilMaktala

I also would like this working... and confirm same issue in kiro-cli I wanted to use shared agent skills via kiro-cli...

I setup symlinks as per skills.sh setup then tried to configure my cli.json for Krio to allow reading from external directory eg:

  "toolsSettings": {
   "read": {
      "allowedPaths": ["~/.kiro/**", "~/.agents/**", "~/Projects/**"]
    },
    "read_file": {
      "allowedPaths": ["~/.kiro/**", "~/.agents/**", "~/Projects/**"]
    },
    "read_text_file": {
      "allowedPaths": ["~/.kiro/**","~/.agents/**", "~/Projects/**"]
    },

But after restarting the cli it still throws an error:

    ╰ path=/Users/xxxx/.kiro/skills/yyyy/SKILL.md
    {
      "content": [
        {
          "type": "text",
          "text": "Access denied - path outside allowed directories: /Users/xxxx/.kiro/skills/yyyy/SKILL.md not in /Users/xxxx/Projects"
        }
      ],
      "isError": true
    }

alexevansigg avatar Mar 24 '26 11:03 alexevansigg

I have the same issue. I hope the development team can fix it as soon as possible. This is really important to me. Thank you very much.

Version: 0.11.107 (user setup) VSCode Version: 1.107.1 Commit: 672afb51e5336b149eb9fc381dd6db6908edbc61 Date: 2026-03-25T21:39:49.530Z Electron: 39.6.0 Chromium: 142.0.7444.265 Node.js: 22.22.0 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.26200

lipanpan-hub avatar Mar 29 '26 00:03 lipanpan-hub

:( It's been about a month since this was reported. would be great to see this fixed

tangcent avatar Apr 15 '26 07:04 tangcent

Related issue https://github.com/kirodotdev/Kiro/issues/2921

myerscf avatar Apr 21 '26 16:04 myerscf

So I asked kiro to configure to load skills from ~/.agents/skills; It tried many things with their skill://. None worked, when I started getting frustrated, it said "oh, let just do a symlink"... And that also don't works.

So Kiro actually wants me to force to use .kiro/ - This is non-negotiable. You can have your own folder, thats fine, but don't ignore the standards, and worse, don't even accept me configuring them.

3esmit avatar May 04 '26 16:05 3esmit

版本: 0.12.155 (user setup)
提交: 1.107.1
日期: 103c4f954913f697123acb72ef6b2266dd9272b5
Electron: 2026-05-06T01:12:04.463Z
ElectronBuildId: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045

fix-kiro-symlink-skills-en.zip

z-xhh avatar May 08 '26 12:05 z-xhh

Started facing the same issue on Windows after upgrading to version 0.12.200:

Version: 0.12.200 (user setup)
VSCode Version: 1.107.1
Commit: 2406958adc70afa75e5473a3ec1f0cd3da68ec6d
Date: 2026-05-15T20:40:31.398Z
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.22631

Building on @z-xhh's workaround above, creating a script to automatically patch the extension.js seems to have temporarily fixed the issue for me. This is in Powershell for Windows, but something similar can be done for macOS and Linux as well:

$extensionJs = "$env:LOCALAPPDATA\Programs\Kiro\resources\app\extensions\kiro.kiro-agent\dist\extension.js"
if (-not (Test-Path $extensionJs)) { Write-Host "extension.js not found."; return }

$content = [System.IO.File]::ReadAllText($extensionJs)

if ($content -match '\(stat12\.type & vscode\d+\.FileType\.Directory\) !== 0') {
    Write-Host "Already patched."; return
}

Copy-Item $extensionJs "$extensionJs.bak" -Force
$content = $content -replace 'return stat12\.type === (vscode\d+)\.FileType\.Directory;', 'return (stat12.type & $1.FileType.Directory) !== 0;'
$content = $content -replace '\} else if \(type === (vscode\d+)\.FileType\.Directory\) \{', '} else if ((type & $1.FileType.Directory) !== 0) {'
[System.IO.File]::WriteAllText($extensionJs, $content)

Write-Host "Patched. Restart Kiro to activate."
Write-Host "To revert: Copy-Item '$extensionJs.bak' '$extensionJs' -Force"

The cause seems to be that directoryExists() in extension.js uses exact equality:

return stat12.type === vscode147.FileType.Directory;

vscode.FileType is a bitmask: Directory = 2, SymbolicLink = 64. A symlinked directory has stat.type = 66 (2 | 64), which fails === 2.

The script changes the condition to (stat12.type & FileType.Directory) !== 0 on all affected locations, and backs up extension.js in case something goes wrong. It just needs to be re-run after each Kiro update.

richardrigutins avatar May 20 '26 12:05 richardrigutins

@AnilMaktala

In the name of all that is holy, why hasn't this been fixed yet?

Noksa avatar May 20 '26 14:05 Noksa

Non-.kiro paths and symlinks are still not working. ☹️

They show up in the editor interface (as expected), but fail to be loaded, even if the skills are in the project directory.

Version: 0.12.263
VSCode Version: 1.107.1
Commit: 5f96b736eac2823f7f7386293443844d1ddeb7f8
Date: 2026-05-28T19:38:44.307Z
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.5.0

giberti avatar May 30 '26 20:05 giberti

an workaround.

on MacOS, use nfs mount.

  1. config your nfs share in /etc/exports and /etc/nfs.conf
  2. mount skill as a shared folder. sudo mount localhost:{source} {destination}
  3. update the /etc/fstab, using sudo vifs

on Linux, use mount --bind

  1. sudo mount --bind localhost:{source} {destination}
  2. update the /etc/fstab, using sudo vifs

please google for the detail config, since different OS version may have different step.

benjah1 avatar Jun 01 '26 14:06 benjah1

My ~/.kiro/steering/*.md files are managed through home manager and unfortunately ignored :/ Looking forward to get it fixed.

P.S. With kiro.dev being a commercially driven tool, it's quite surprising indeed that such a core issue is still open after two months.

haizaar avatar Jun 04 '26 15:06 haizaar

Same here - symlinks in general seem to be an issue - we have lots of use cases including wanting to use settings and rules that are outside the current folder in order to have them shared across projects or teams.

robw-adobe avatar Jun 20 '26 20:06 robw-adobe

Still experiencing this on latest version.

Version: 0.12.333 OS: macOS 26.5.1 (Darwin arm64 25.5.0) My setup uses a skills manager (~/.skills-manager/skills/) that symlinks into ~/.kiro/skills/:

lrwxr-xr-x grill-me -> /Users/a19150/.skills-manager/skills/grill-me lrwxr-xr-x web-access -> /Users/a19150/.skills-manager/skills/web-access The symlink targets are valid directories containing SKILL.md — confirmed via test -d and cat. But Kiro's disclose_context reports "No skills available" and they don't appear in the # context picker.

DGU-stallion avatar Jul 01 '26 07:07 DGU-stallion

Unfortunately, this project has a very strange approach to bug prioritization. So it's likely we won't see a fix anytime soon, even though it's very simple.

Noksa avatar Jul 01 '26 09:07 Noksa