deepseek-ai/deepseek-harness · error

skill file ignored

Error message

skill file ${path} ignored: ${fsReadErrorMessage(target, error)}

What it means

Per-file skip diagnostic in skill loading: reading the skill file as text failed with a non-fatal fs error (reported by fsReadErrorMessage, e.g. not regular text or unreadable), so the file is ignored rather than failing the whole scan. Missing paths return undefined silently; only loggable read problems reach this warning.

Solutions

  1. Check that the skill file path exists and is readable by the agent process.
  2. Fix filesystem permissions or remove the broken skill file, then reload the skill catalog.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at packages/skill/skill-filesystem/src/index.ts:882 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24). Data as JSON: /api/errors/7cbeb1f04f4925f8. Report an issue: GitHub.

Appendix: source

Thrown at packages/skill/skill-filesystem/src/index.ts:882

    throw error
  }
  signal?.throwIfAborted()
  let info
  try {
    info = await fs.stat(target, signal)
  } catch (error) {
    signal?.throwIfAborted()
    if (isAbsentSkillPathError(error)) return undefined
    throw error
  }
  if (info === undefined || info.type !== 'file') return undefined
  try {
    return await fs.readText(target, signal)
  } catch (error) {
    signal?.throwIfAborted()
    if (isAbsentSkillPathError(error)) return undefined
    if (!hasErrorCode(error, 'FS_NOT_TEXT')) throw error
    ctx.logger.warn(`skill file ${path} ignored: ${fsReadErrorMessage(target, error)}`)
    return undefined
  }
}

function fsReadErrorMessage(target: FsTarget, error: unknown): string {
  return `failed to read text file at ${target.displayPath}: ${errorMessage(error)}`
}

async function nodeEntryKind(fullPath: string, entry: { isDirectory(): boolean; isFile(): boolean; isSymbolicLink(): boolean }, ctx: Context): Promise<'directory' | 'file' | undefined> {
  if (entry.isDirectory()) return 'directory'
  if (entry.isFile()) return 'file'
  /* v8 ignore next -- Non-file directory entries such as FIFOs are platform-specific and intentionally skipped. */
  if (!entry.isSymbolicLink()) return undefined
  try {
    const info = await stat(fullPath)
    if (info.isDirectory()) return 'directory'
    /* v8 ignore else -- the special-file symlink branch relies on POSIX /dev/null. */
    if (info.isFile()) return 'file'

View on GitHub (pinned to b150a551b8)