Class SkillManageConfig

java.lang.Object
io.agentscope.harness.agent.tool.SkillManageConfig

public final class SkillManageConfig extends Object
Configuration for SkillManageTool.

Default values are tuned for enterprise production deployment: new skills land in a draft subdirectory (not the live skills root), static security scanning is on, and the agent cannot silently overwrite an existing skill via create.

For personal-assistant / experimental use the recommended override is SkillManageConfig.builder().autoPromote(true).build() — agent writes go straight to the live skills root, becoming visible on the next reasoning turn.

  • Field Details

    • DEFAULT_DRAFTS_DIR

      public static final String DEFAULT_DRAFTS_DIR
      Default subdirectory under workspace for staging drafts.
      See Also:
    • DEFAULT_MAIN_DIR

      public static final String DEFAULT_MAIN_DIR
      Default subdirectory under workspace for promoted skills.
      See Also:
  • Method Details

    • autoPromote

      public boolean autoPromote()
      Skip the draft staging path and write directly to the live skills root.
    • securityScan

      public boolean securityScan()
      Run SkillSecurityScanner after every write.
    • draftsDir

      public String draftsDir()
      Workspace-relative directory where drafts land.
    • mainDir

      public String mainDir()
      Workspace-relative directory where promoted skills live.
    • defaults

      public static SkillManageConfig defaults()
    • builder

      public static SkillManageConfig.Builder builder()