AgentSkillsPool.java refactored