
Specstory Guard
- 243 installs
- 31 repo stars
- Updated January 31, 2026
- specstoryai/agent-skills
Use specstory-guard for development tasks
About
specstory-guard: A skill for development. This provides functionality for development workflows.
- specstory-guard
Specstory Guard by the numbers
- 243 all-time installs (skills.sh)
- +1 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #1,551 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
- Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/specstoryai/agent-skills --skill specstory-guardAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 243 |
|---|---|
| repo stars | ★ 31 |
| Last updated | January 31, 2026 |
| Repository | specstoryai/agent-skills ↗ |
What it does
Use specstory-guard for development tasks
Files
SpecStory Guard
A pre-commit guardrail that scans .specstory/history for potential secrets and blocks commits until they are removed or redacted.
How It Works
1. Installs a git pre-commit hook in your repository 2. Scans .specstory/history files on every commit 3. Detects common secret patterns (API keys, tokens, private keys) 4. Blocks the commit if secrets are found 5. Reports findings with redacted previews for safe review
Why Use Guard?
AI coding sessions may inadvertently capture sensitive data:
- API keys you pasted into chat
- Environment variables in command output
- Private keys or tokens in error messages
- Credentials in configuration examples
Guard prevents accidental commits of these secrets.
Usage
Slash Command
| User says | Action |
|---|---|
/specstory-guard | Install the pre-commit hook |
/specstory-guard install | Install the pre-commit hook |
/specstory-guard scan | Run a manual scan without installing |
/specstory-guard check | Alias for scan |
/specstory-guard uninstall | Remove the pre-commit hook |
Direct Script Usage
# Install the pre-commit hook
python skills/specstory-guard/scripts/guard.py install
# Run a manual scan
python skills/specstory-guard/scripts/guard.py scan --root .
# Uninstall the hook
python skills/specstory-guard/scripts/guard.py uninstall
# Scan with custom allowlist
SPECSTORY_GUARD_ALLOWLIST='example-key,PLACEHOLDER_.*' \
python skills/specstory-guard/scripts/guard.py scan --root .Output
Scan with findings:
SpecStory Guard - Security Scan
===============================
Scanning .specstory/history/...
ALERT: Potential secrets found!
File: .specstory/history/2026-01-22_19-20-56Z-api-setup.md
Line 142: AWS_SECRET_ACCESS_KEY=AKIA...redacted...XYZ
Line 289: private_key: "-----BEGIN RSA PRIVATE KEY-----..."
File: .specstory/history/2026-01-20_10-15-33Z-debug-auth.md
Line 56: Authorization: Bearer eyJhbG...redacted...
Total: 3 potential secrets in 2 files
Commit blocked. Please redact or remove these secrets before committing.Clean scan:
SpecStory Guard - Security Scan
===============================
Scanning .specstory/history/...
All clear! No secrets detected in 47 files.Installation success:
SpecStory Guard - Setup
=======================
Pre-commit hook installed at .git/hooks/pre-commit
The hook will now scan .specstory/history/ before each commit.
To test: python skills/specstory-guard/scripts/guard.py scan --root .Detected Patterns
Guard scans for these common secret patterns:
| Pattern | Example |
|---|---|
| AWS Keys | AKIA..., aws_secret_access_key |
| API Tokens | Bearer ..., token: ... |
| Private Keys | -----BEGIN RSA PRIVATE KEY----- |
| GitHub Tokens | ghp_..., github_pat_... |
| Generic Secrets | password=, secret=, api_key= |
Tuning with Allowlist
If you have false positives (example keys, placeholders), use the allowlist:
# Environment variable (comma-separated regex patterns)
SPECSTORY_GUARD_ALLOWLIST='example-key,PLACEHOLDER_.*,test-token' \
python skills/specstory-guard/scripts/guard.py scan --root .Remediation
When secrets are found:
1. Open the file - Find the line number from the report 2. Redact the secret - Replace with [REDACTED] or remove the line 3. Re-run scan - Verify the fix with another scan 4. Commit - The pre-commit hook will pass
Present Results to User
After running guard commands:
1. For install - Confirm the hook is installed and explain what it does 2. For scan with findings - List the findings and offer to help redact them 3. For clean scan - Confirm no secrets were found
Example Response (findings)
I found 3 potential secrets in your SpecStory history:
1. **AWS credentials** in `2026-01-22_19-20-56Z-api-setup.md` (line 142)
2. **Private key** in the same file (line 289)
3. **Bearer token** in `2026-01-20_10-15-33Z-debug-auth.md` (line 56)
Would you like me to help redact these? I can replace them with `[REDACTED]`
while preserving the rest of the conversation context.Notes
- Uses no external dependencies (pure Python)
- Hook runs automatically on
git commit - Scan is fast - typically under 1 second for hundreds of files
- Allowlist patterns are regular expressions
#!/bin/sh
# specstory-guard pre-commit hook
set -e
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || true)
if [ -z "$REPO_ROOT" ]; then
exit 0
fi
SCAN_SCRIPT="$REPO_ROOT/skills/specstory-guard/scripts/scan.py"
if [ ! -f "$SCAN_SCRIPT" ]; then
echo "specstory-guard: scan script not found at $SCAN_SCRIPT" >&2
exit 1
fi
PYTHON_BIN="python3"
if ! command -v "$PYTHON_BIN" >/dev/null 2>&1; then
PYTHON_BIN="python"
fi
if ! command -v "$PYTHON_BIN" >/dev/null 2>&1; then
echo "specstory-guard: python not found (need python3 or python)" >&2
exit 1
fi
"$PYTHON_BIN" "$SCAN_SCRIPT" --root "$REPO_ROOT"
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.{
"name": "specstory-guard",
"version": "0.1.0",
"description": "Pre-commit guardrail that scans .specstory/history for potential secrets.",
"scope": {
"history_dir": ".specstory/history",
"enforcement": "pre-commit"
},
"entrypoints": {
"setup": "scripts/setup.py",
"scan": "scripts/scan.py"
}
}
from __future__ import annotations
import os
import subprocess
import sys
USAGE = """Usage:
python scripts/guard.py install [--force]
python scripts/guard.py scan [--root PATH] [--history-dir PATH] [--format text|markdown]
python scripts/guard.py uninstall
"""
def script_path(name: str) -> str:
return os.path.abspath(os.path.join(os.path.dirname(__file__), name))
def run_python(script: str, args: list[str]) -> int:
return subprocess.call([sys.executable, script, *args])
def main() -> int:
args = sys.argv[1:]
command = args[0] if args else "install"
command_args = args[1:] if args else []
if command in {"-h", "--help", "help"}:
print(USAGE)
return 0
if command in {"scan", "check"}:
return run_python(script_path("scan.py"), command_args)
if command in {"install", "uninstall"}:
return run_python(script_path("setup.py"), [command, *command_args])
print(f"specstory-guard: unknown command '{command}'", file=sys.stderr)
print(USAGE, file=sys.stderr)
return 1
if __name__ == "__main__":
raise SystemExit(main())
from __future__ import annotations
from dataclasses import dataclass
import re
@dataclass(frozen=True)
class SecretPattern:
name: str
regex: re.Pattern[str]
PATTERNS = [
SecretPattern(
name="private-key-block",
regex=re.compile(r"-----BEGIN (?:RSA|EC|DSA|OPENSSH|PRIVATE) KEY-----"),
),
SecretPattern(
name="aws-access-key-id",
regex=re.compile(r"\b(AKIA|ASIA)[0-9A-Z]{16}\b"),
),
SecretPattern(
name="aws-secret-access-key",
regex=re.compile(
r"(?i)\baws_secret_access_key\b\s*[:=]\s*['\"]?[A-Za-z0-9/+=]{40}"
),
),
SecretPattern(
name="github-token",
regex=re.compile(r"\bgh[pousr]_[A-Za-z0-9]{36}\b"),
),
SecretPattern(
name="gitlab-token",
regex=re.compile(r"\bglpat-[0-9A-Za-z\-_]{20,}\b"),
),
SecretPattern(
name="slack-token",
regex=re.compile(r"\bxox[baprs]-[0-9A-Za-z-]{10,}\b"),
),
SecretPattern(
name="google-api-key",
regex=re.compile(r"\bAIza[0-9A-Za-z\-_]{35}\b"),
),
SecretPattern(
name="stripe-live-key",
regex=re.compile(r"\bsk_live_[0-9a-zA-Z]{24}\b"),
),
SecretPattern(
name="jwt",
regex=re.compile(
r"\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b"
),
),
SecretPattern(
name="generic-credential-assignment",
regex=re.compile(
r"(?i)\b(api[_-]?key|secret|token|password)\b\s*[:=]\s*['\"]?[A-Za-z0-9_\-\/+=]{16,}"
),
),
]
ALLOWLIST = [
re.compile(r"(?i)redacted"),
re.compile(r"(?i)<redacted>"),
re.compile(r"(?i)placeholder"),
re.compile(r"(?i)example"),
re.compile(r"(?i)dummy"),
re.compile(r"(?i)fake"),
re.compile(r"\b(x{4,}|\*{4,})\b"),
]
from __future__ import annotations
import argparse
import os
import re
import sys
from dataclasses import dataclass
from typing import Iterable
from patterns import ALLOWLIST, PATTERNS, SecretPattern
@dataclass(frozen=True)
class Finding:
file_path: str
line_number: int
rule_name: str
snippet: str
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(
description="Scan .specstory/history for potential secrets.",
)
parser.add_argument(
"--root",
default=os.getcwd(),
help="Repository root (default: current working directory)",
)
parser.add_argument(
"--history-dir",
default=None,
help="Override history directory (relative to root)",
)
parser.add_argument(
"--max-matches-per-file",
type=int,
default=5,
help="Limit findings reported per file",
)
parser.add_argument(
"--max-matches",
type=int,
default=50,
help="Limit total findings reported",
)
parser.add_argument(
"--format",
choices=("text", "markdown"),
default="text",
help="Output format",
)
return parser.parse_args()
def resolve_history_dir(root: str, override: str | None) -> str:
if override:
return os.path.join(root, override)
return os.path.join(root, ".specstory", "history")
def iter_history_files(history_dir: str) -> Iterable[str]:
for base, _, files in os.walk(history_dir):
for name in files:
if name.endswith(".md"):
yield os.path.join(base, name)
def load_user_allowlist() -> list[re.Pattern[str]]:
raw = os.getenv("SPECSTORY_GUARD_ALLOWLIST", "").strip()
if not raw:
return []
patterns: list[re.Pattern[str]] = []
for entry in [item.strip() for item in raw.split(",") if item.strip()]:
try:
patterns.append(re.compile(entry))
except re.error as exc:
print(f"specstory-guard: invalid allowlist regex '{entry}': {exc}", file=sys.stderr)
return patterns
def is_allowlisted(text: str, allowlist: list[re.Pattern[str]]) -> bool:
return any(pattern.search(text) for pattern in allowlist)
def build_snippet(line: str, match: re.Match[str]) -> str:
start, end = match.span()
redacted = "<redacted>"
snippet = f"{line[:start]}{redacted}{line[end:]}".strip()
if len(snippet) > 200:
snippet = f"{snippet[:200]}..."
return snippet
def scan_file(
file_path: str,
patterns: list[SecretPattern],
allowlist: list[re.Pattern[str]],
max_matches_per_file: int,
) -> list[Finding]:
findings: list[Finding] = []
try:
with open(file_path, "r", encoding="utf-8", errors="replace") as handle:
for line_number, line in enumerate(handle, start=1):
if is_allowlisted(line, allowlist):
continue
for pattern in patterns:
match = pattern.regex.search(line)
if not match:
continue
if is_allowlisted(match.group(0), allowlist):
continue
findings.append(
Finding(
file_path=file_path,
line_number=line_number,
rule_name=pattern.name,
snippet=build_snippet(line, match),
)
)
if len(findings) >= max_matches_per_file:
return findings
if len(findings) >= max_matches_per_file:
return findings
except OSError as exc:
print(f"specstory-guard: failed to read {file_path}: {exc}", file=sys.stderr)
return findings
def format_findings(findings: list[Finding], output_format: str) -> str:
if output_format == "markdown":
lines = ["specstory-guard: potential secrets detected:"]
for finding in findings:
rel_path = os.path.relpath(finding.file_path, os.getcwd())
lines.append(
f"- `{rel_path}:{finding.line_number}` ({finding.rule_name}) {finding.snippet}"
)
return "\n".join(lines)
lines = ["specstory-guard: potential secrets detected:"]
for finding in findings:
rel_path = os.path.relpath(finding.file_path, os.getcwd())
lines.append(
f"{rel_path}:{finding.line_number}: {finding.rule_name}: {finding.snippet}"
)
return "\n".join(lines)
def main() -> int:
args = parse_args()
root = os.path.abspath(args.root)
history_dir = resolve_history_dir(root, args.history_dir)
if not os.path.isdir(history_dir):
return 0
allowlist = ALLOWLIST + load_user_allowlist()
findings: list[Finding] = []
for file_path in iter_history_files(history_dir):
findings.extend(
scan_file(
file_path=file_path,
patterns=PATTERNS,
allowlist=allowlist,
max_matches_per_file=args.max_matches_per_file,
)
)
if len(findings) >= args.max_matches:
break
if not findings:
return 0
print(format_findings(findings, args.format), file=sys.stderr)
return 1
if __name__ == "__main__":
raise SystemExit(main())
from __future__ import annotations
import argparse
import os
import shutil
import stat
import subprocess
import sys
HOOK_MARKER = "specstory-guard"
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Install specstory-guard git hooks.")
subparsers = parser.add_subparsers(dest="command")
install = subparsers.add_parser("install", help="Install the pre-commit hook")
install.add_argument("--force", action="store_true", help="Overwrite existing hook")
subparsers.add_parser("uninstall", help="Remove the pre-commit hook")
args = parser.parse_args()
if args.command is None:
args.command = "install"
args.force = False
return args
def repo_root() -> str:
try:
result = subprocess.run(
["git", "rev-parse", "--show-toplevel"],
check=True,
capture_output=True,
text=True,
)
return result.stdout.strip()
except (subprocess.SubprocessError, FileNotFoundError):
return os.getcwd()
def skill_root() -> str:
return os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
def hook_source_path(hook_name: str) -> str:
return os.path.join(skill_root(), "hooks", hook_name)
def hook_dest_path(root: str, hook_name: str) -> str:
return os.path.join(root, ".git", "hooks", hook_name)
def ensure_executable(path: str) -> None:
current = os.stat(path).st_mode
os.chmod(path, current | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
def is_guard_hook(path: str) -> bool:
try:
with open(path, "r", encoding="utf-8", errors="replace") as handle:
return HOOK_MARKER in handle.read()
except OSError:
return False
def install_hook(root: str, hook_name: str, force: bool) -> int:
source = hook_source_path(hook_name)
destination = hook_dest_path(root, hook_name)
if not os.path.isfile(source):
print(f"specstory-guard: missing hook template at {source}", file=sys.stderr)
return 1
os.makedirs(os.path.dirname(destination), exist_ok=True)
if os.path.exists(destination) and not force and not is_guard_hook(destination):
print(
"specstory-guard: existing hook found; use --force to overwrite",
file=sys.stderr,
)
return 1
shutil.copyfile(source, destination)
ensure_executable(destination)
print(f"specstory-guard: installed {hook_name} hook")
return 0
def uninstall_hook(root: str, hook_name: str) -> int:
destination = hook_dest_path(root, hook_name)
if not os.path.exists(destination):
print("specstory-guard: hook not installed")
return 0
if not is_guard_hook(destination):
print(
"specstory-guard: hook not managed by specstory-guard; refusing to remove",
file=sys.stderr,
)
return 1
os.remove(destination)
print(f"specstory-guard: removed {hook_name} hook")
return 0
def main() -> int:
args = parse_args()
root = repo_root()
hook_name = "pre-commit"
if args.command == "install":
return install_hook(root, hook_name, args.force)
if args.command == "uninstall":
return uninstall_hook(root, hook_name)
print("specstory-guard: unknown command", file=sys.stderr)
return 1
if __name__ == "__main__":
raise SystemExit(main())