Skip to content

fix: copy .claude/ settings directory into eval workspace#7

Merged
melanie531 merged 1 commit into
aws-samples:mainfrom
udid-aws:fix/copy-claude-settings-to-workspace
May 17, 2026
Merged

fix: copy .claude/ settings directory into eval workspace#7
melanie531 merged 1 commit into
aws-samples:mainfrom
udid-aws:fix/copy-claude-settings-to-workspace

Conversation

@udid-aws

@udid-aws udid-aws commented May 17, 2026

Copy link
Copy Markdown
Contributor

Problem

When running skill-eval functional, the tool creates temp directories under /tmp as workspaces. The Claude CLI resolves project-level settings (.claude/settings.local.json) relative to the working directory, so any configuration in the skill's .claude/ directory (e.g., AWS profile, MCP servers) is lost.

Solution

Copy the skill's .claude/ directory into the with-skill temp workspace alongside the existing scripts/, references/, and assets/ directories.

Testing

  • All 57 existing functional tests pass
  • Ran skill-eval functional on a skill that requires AWS credentials via .claude/settings.local.json. After the fix, benchmark.json contains the expected skill output. Before the fix (and confirmed by re-running without .claude/settings.local.json), benchmark.json showed permissions/authorization errors instead.

Fixes #6

When running functional evals, the temp workspace was missing the
skill's .claude/settings.local.json, causing the Claude CLI to lose
project-level configuration (e.g., AWS profile, MCP servers).

Now copies the .claude/ directory from the skill folder into the
with-skill workspace alongside scripts/, references/, and assets/.

Fixes aws-samples#6
@melanie531 melanie531 merged commit 7142a92 into aws-samples:main May 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to pass AWS_PROFILE to the skill-eval tool for the functional tests using local .claude/settings.local.json file

2 participants