Skip to content

Comments

fix: respect content_dirname configuration during module installation#44

Merged
mrbrandao merged 2 commits intoRedHatProductSecurity:mainfrom
mrbrandao:content-module-fix
Feb 12, 2026
Merged

fix: respect content_dirname configuration during module installation#44
mrbrandao merged 2 commits intoRedHatProductSecurity:mainfrom
mrbrandao:content-module-fix

Conversation

@mrbrandao
Copy link
Collaborator

Summary

  • Fixed module installation to respect custom content_dirname configuration (e.g., lola-module/)
  • Installation helper functions now correctly locate module content in custom subdirectories
  • Maintains full backward compatibility with existing modules using module/ or flat structure

Related Issues

Fixes module installation issue where skills from modules with custom content directories (registered with --module-content) were not being installed to assistant directories (.claude/, .cursor/, etc.).

Test Plan

  • Install module with custom content_dirname (secdevai with lola-module/)
  • Verify all 6 skills installed to .claude/skills/
  • Verify supporting files (contexts, scripts) copied correctly
  • Test backward compatibility with module/ subdirectory (test module)
  • Test backward compatibility with flat structure (bragai module)

Checklist

  • Tests pass (pytest) - 554 passed
  • Linting passes (ruff check src tests)
  • Type checking passes (ty check)

AI Disclosure

AI-assisted with Claude Code

Extend _get_content_path() to support both "module" and "lola-module"
subdirectories using CONTENT_DIR_CANDIDATES list.
This will fix the 🐛 where modules installed with a custom directory
were not proper installed.

Add _get_content_dirname() helper to extract content path from Module
and pass it through all installation functions (_install_skills,
_install_commands, _install_agents, _install_instructions,
_install_mcps, _run_install_hook).

Update _skill_source_dir() to accept optional content_dirname
parameter for proper skill resolution.
@mrbrandao mrbrandao self-assigned this Feb 12, 2026
@mrbrandao mrbrandao added bug Something isn't working enhancement New feature or request labels Feb 12, 2026
@mrbrandao mrbrandao merged commit 06674f7 into RedHatProductSecurity:main Feb 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant