add README guidance to skill workflow
This commit is contained in:
@@ -1001,6 +1001,16 @@ def cmd_create(args: argparse.Namespace) -> None:
|
||||
flags=re.MULTILINE,
|
||||
)
|
||||
skill_md.write_text(content, encoding="utf-8")
|
||||
readme = dst / "README.md"
|
||||
if readme.is_file():
|
||||
readme_content = re.sub(
|
||||
r"^#\s+skill-name\s*$",
|
||||
f"# {args.name}",
|
||||
readme.read_text(encoding="utf-8"),
|
||||
count=1,
|
||||
flags=re.MULTILINE,
|
||||
)
|
||||
readme.write_text(readme_content, encoding="utf-8")
|
||||
brief = {
|
||||
"name": args.name,
|
||||
"idea": args.idea or "",
|
||||
|
||||
Reference in New Issue
Block a user