From 8abc63efdbc0bb96cd6c9aa99d6e9166e0bcabae Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 22 Mar 2026 23:45:19 +0000 Subject: chore: unify and centralize agent configuration in .agent/ --- package.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package.py (limited to 'package.py') diff --git a/package.py b/package.py new file mode 100644 index 0000000..1e64be2 --- /dev/null +++ b/package.py @@ -0,0 +1,18 @@ +import zipfile +import os +import sys + +def package_skill(skill_path, output_filename): + with zipfile.ZipFile(output_filename, 'w', zipfile.ZIP_DEFLATED) as zipf: + for root, dirs, files in os.walk(skill_path): + for file in files: + file_path = os.path.join(root, file) + arcname = os.path.relpath(file_path, skill_path) + zipf.write(file_path, arcname) + print(f"Successfully packaged {skill_path} to {output_filename}") + +if __name__ == "__main__": + if len(sys.argv) < 3: + print("Usage: python3 package.py ") + sys.exit(1) + package_skill(sys.argv[1], sys.argv[2]) -- cgit v1.2.3