Skip to content

autonomy.fsm.scaffold.scaffold_skill

Scaffold skill from an FSM

SkillConfigUpdater Objects

class SkillConfigUpdater()

Update the skill configuration according to the Abci classes.

__init__

def __init__(ctx: Context, skill_dir: Path, dfa: DFA) -> None

Initialize the skill config updater.

Arguments:

  • ctx: the AEA CLI context object.
  • skill_dir: the directory of the AEA skill package.
  • dfa: the DFA object.

update

def update() -> None

Update the skill configuration file.

get_actual_abstract_round_abci_package_public_id

@classmethod
def get_actual_abstract_round_abci_package_public_id(
        cls, ctx: Context) -> Optional[PublicId]

Get abstract round abci pacakge id from the registry.

ScaffoldABCISkill Objects

class ScaffoldABCISkill()

Utility class that implements the scaffolding of the ABCI skill.

__init__

def __init__(ctx: Context, skill_name: str, spec_path: Path) -> None

Initialize the utility class.

skill_dir

@property
def skill_dir() -> Path

Get the directory to the skill.

skill_test_dir

@property
def skill_test_dir() -> Path

Get the directory to the skill tests.

do_scaffolding

def do_scaffolding() -> None

Do the scaffolding.

add_skill_to_packages

def add_skill_to_packages() -> None

Add skill to packages.json if scaffolded to local packages repository